Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more
Object
# File prettyprint.rb, line 361 def initialize(output, maxwidth=nil, newline=nil) @output = output @first = [true] end
# File prettyprint.rb, line 370 def breakable(sep=' ', width=nil) @output << sep end
# File prettyprint.rb, line 389 def first? result = @first[-1] @first[-1] = false result end
# File prettyprint.rb, line 386 def flush end
# File prettyprint.rb, line 378 def group(indent=nil, open_obj='', close_obj='', open_width=nil, close_width=nil) @first.push true @output << open_obj yield @output << close_obj @first.pop end
# File prettyprint.rb, line 374 def nest(indent) yield end
# File prettyprint.rb, line 366 def text(obj, width=nil) @output << obj end
This page was generated for Ruby 2.0.0
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.44.0.