Class: RbYAML::NodeEvent
Direct Known Subclasses
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Returns the value of attribute anchor.
Attributes inherited from Event
Instance Method Summary collapse
- #__is_node ⇒ Object
-
#initialize(anchor, start_mark = nil, end_mark = nil) ⇒ NodeEvent
constructor
A new instance of NodeEvent.
Methods inherited from Event
#__is_alias, #__is_collection_end, #__is_collection_start, #__is_document_end, #__is_document_start, #__is_mapping_end, #__is_mapping_start, #__is_scalar, #__is_sequence_end, #__is_sequence_start, #__is_stream_end, #__is_stream_start, #hash, #to_s
Constructor Details
#initialize(anchor, start_mark = nil, end_mark = nil) ⇒ NodeEvent
Returns a new instance of NodeEvent.
30 31 32 33 |
# File 'lib/rbyaml/events.rb', line 30 def initialize(anchor, start_mark=nil, end_mark=nil) super(start_mark,end_mark) @anchor = anchor end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Returns the value of attribute anchor.
29 30 31 |
# File 'lib/rbyaml/events.rb', line 29 def anchor @anchor end |
Instance Method Details
#__is_node ⇒ Object
34 |
# File 'lib/rbyaml/events.rb', line 34 def __is_node; true; end |