Class: RbYAML::ScalarEvent
- Defined in:
- lib/rbyaml/events.rb
Instance Attribute Summary collapse
-
#implicit ⇒ Object
readonly
Returns the value of attribute implicit.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from NodeEvent
Attributes inherited from Event
Instance Method Summary collapse
- #__is_scalar ⇒ Object
-
#initialize(anchor, tag, implicit, value, start_mark = nil, end_mark = nil, style = nil) ⇒ ScalarEvent
constructor
A new instance of ScalarEvent.
Methods inherited from 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_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
#implicit ⇒ Object (readonly)
Returns the value of attribute implicit.
90 91 92 |
# File 'lib/rbyaml/events.rb', line 90 def implicit @implicit end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
90 91 92 |
# File 'lib/rbyaml/events.rb', line 90 def style @style end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
90 91 92 |
# File 'lib/rbyaml/events.rb', line 90 def tag @tag end |
#value ⇒ Object (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_scalar ⇒ Object
98 |
# File 'lib/rbyaml/events.rb', line 98 def __is_scalar; true; end |