Class: RbYAML::NodeEvent

Inherits:
Event show all
Defined in:
lib/rbyaml/events.rb

Direct Known Subclasses

AliasEvent, CollectionStartEvent, ScalarEvent

Instance Attribute Summary collapse

Attributes inherited from Event

#end_mark, #start_mark

Instance Method Summary collapse

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

#anchorObject (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_nodeObject



34
# File 'lib/rbyaml/events.rb', line 34

def __is_node; true; end