Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

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 303
def initialize(depth)
  @depth = depth
  @breakables = []
  @break = false
end
            

Public Instance Methods

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