class PrettyPrint::Group

Attributes

breakables[R]
depth[R]

Public Class Methods

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

Public Instance Methods

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