Method: PrettyPrint::Text#add
- Defined in:
- lib/prettyprint.rb
#add(obj, width) ⇒ Object
Include obj in the objects to be pretty printed, and increment this Text object’s total width by width
330 331 332 333 |
# File 'lib/prettyprint.rb', line 330 def add(obj, width) @objs << obj @width += width end |