Class: RbYAML::ScalarEvent

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

Instance Attribute Summary collapse

Attributes inherited from NodeEvent

#anchor

Attributes inherited from Event

#end_mark, #start_mark

Instance Method Summary collapse

Methods inherited from NodeEvent

#__is_node

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_node, #__is_sequence_end, #__is_sequence_start, #__is_stream_end, #__is_stream_start, #hash, #to_s

Constructor Details

#initialize(anchor, tag, implicit, value, start_mark = nil, end_mark = nil, style = nil) ⇒ ScalarEvent

Returns a new instance of ScalarEvent.



91
92
93
94
95
96
97
# File 'lib/rbyaml/events.rb', line 91

def initialize(anchor,tag,implicit,value,start_mark=nil, end_mark=nil,style=nil)
  super(anchor,start_mark,end_mark)
  @tag = tag
  @style = style
  @value = value
  @implicit = implicit
end

Instance Attribute Details

#implicitObject (readonly)

Returns the value of attribute implicit.



90
91
92
# File 'lib/rbyaml/events.rb', line 90

def implicit
  @implicit
end

#styleObject (readonly)

Returns the value of attribute style.



90
91
92
# File 'lib/rbyaml/events.rb', line 90

def style
  @style
end

#tagObject (readonly)

Returns the value of attribute tag.



90
91
92
# File 'lib/rbyaml/events.rb', line 90

def tag
  @tag
end

#valueObject (readonly)

Returns the value of attribute value.



90
91
92
# File 'lib/rbyaml/events.rb', line 90

def value
  @value
end

Instance Method Details

#__is_scalarObject



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

def __is_scalar; true; end