Class: MultiRBTree
- Inherits:
-
Object
- Object
- MultiRBTree
- Defined in:
- lib/rbtree.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#pretty_print(pp) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rbtree.rb', line 7 def pretty_print(pp) pp.text "#<#{self.class.to_s}: " pp.pp_hash self pp.comma_breakable pp.text "default=" pp.pp default pp.comma_breakable pp.text "cmp_proc=" pp.pp cmp_proc pp.text ">" end |
#pretty_print_cycle(pp) ⇒ Object
19 20 21 |
# File 'lib/rbtree.rb', line 19 def pretty_print_cycle(pp) pp.text "\"#<#{self.class.to_s}: ...>\"" end |