Class: HasBoth
Instance Method Summary collapse
-
#initialize(a) ⇒ HasBoth
constructor
A new instance of HasBoth.
- #inspect ⇒ Object
- #pretty_print(q) ⇒ Object
Constructor Details
#initialize(a) ⇒ HasBoth
Returns a new instance of HasBoth.
523 524 525 |
# File 'lib/rubysl/prettyprint/pp.rb', line 523 def initialize(a) @a = a end |
Instance Method Details
#inspect ⇒ Object
527 528 529 |
# File 'lib/rubysl/prettyprint/pp.rb', line 527 def inspect return "<inspect:#{@a.inspect}>" end |
#pretty_print(q) ⇒ Object
531 532 533 534 535 |
# File 'lib/rubysl/prettyprint/pp.rb', line 531 def pretty_print(q) q.text "<pretty_print:" q.pp @a q.text ">" end |