Module: Psych::Pure::CommentExtensions::TreeBuilder
- Defined in:
- lib/psych/pure.rb
Overview
Extend the TreeBuilder to be able to attach comments to nodes.
Instance Method Summary collapse
Instance Method Details
#comment(value) ⇒ Object
687 688 689 |
# File 'lib/psych/pure.rb', line 687 def comment(value) comments << value end |
#comments ⇒ Object
683 684 685 |
# File 'lib/psych/pure.rb', line 683 def comments @comments ||= [] end |
#end_stream ⇒ Object
691 692 693 |
# File 'lib/psych/pure.rb', line 691 def end_stream attach_comments(super) end |