Class: RbYAML::DocumentStartEvent
- Defined in:
- lib/rbyaml/events.rb
Instance Attribute Summary collapse
-
#explicit ⇒ Object
readonly
Returns the value of attribute explicit.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from Event
Instance Method Summary collapse
- #__is_document_start ⇒ Object
-
#initialize(start_mark = nil, end_mark = nil, explicit = nil, version = nil, tags = nil) ⇒ DocumentStartEvent
constructor
A new instance of DocumentStartEvent.
Methods inherited from Event
#__is_alias, #__is_collection_end, #__is_collection_start, #__is_document_end, #__is_mapping_end, #__is_mapping_start, #__is_node, #__is_scalar, #__is_sequence_end, #__is_sequence_start, #__is_stream_end, #__is_stream_start, #hash, #to_s
Constructor Details
#initialize(start_mark = nil, end_mark = nil, explicit = nil, version = nil, tags = nil) ⇒ DocumentStartEvent
Returns a new instance of DocumentStartEvent.
67 68 69 70 71 72 |
# File 'lib/rbyaml/events.rb', line 67 def initialize(start_mark=nil,end_mark=nil,explicit=nil,version=nil,=nil) super(start_mark,end_mark) @explicit = explicit @version = version @tags = end |
Instance Attribute Details
#explicit ⇒ Object (readonly)
Returns the value of attribute explicit.
66 67 68 |
# File 'lib/rbyaml/events.rb', line 66 def explicit @explicit end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
66 67 68 |
# File 'lib/rbyaml/events.rb', line 66 def @tags end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
66 67 68 |
# File 'lib/rbyaml/events.rb', line 66 def version @version end |
Instance Method Details
#__is_document_start ⇒ Object
73 |
# File 'lib/rbyaml/events.rb', line 73 def __is_document_start; true; end |