In Files

  • prettyprint.rb

Parent

PrettyPrint::Group

Attributes

breakables[R]
depth[R]

Public Class Methods

new(depth) click to toggle source
 
               # File prettyprint.rb, line 287
def initialize(depth)
  @depth = depth
  @breakables = []
  @break = false
end
            

Public Instance Methods

break() click to toggle source
 
               # File prettyprint.rb, line 294
def break
  @break = true
end
            
break?() click to toggle source
 
               # File prettyprint.rb, line 298
def break?
  @break
end
            
first?() click to toggle source
 
               # File prettyprint.rb, line 302
def first?
  if defined? @first
    false
  else
    @first = false
    true
  end
end