Class: RbYAML::StreamStartEvent
- Defined in:
- lib/rbyaml/events.rb
Instance Attribute Summary collapse
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
Attributes inherited from Event
Instance Method Summary collapse
- #__is_stream_start ⇒ Object
-
#initialize(start_mark = nil, end_mark = nil, encoding = nil) ⇒ StreamStartEvent
constructor
A new instance of StreamStartEvent.
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_scalar, #__is_sequence_end, #__is_sequence_start, #__is_stream_end, #hash, #to_s
Constructor Details
#initialize(start_mark = nil, end_mark = nil, encoding = nil) ⇒ StreamStartEvent
Returns a new instance of StreamStartEvent.
54 55 56 57 |
# File 'lib/rbyaml/events.rb', line 54 def initialize(start_mark=nil,end_mark=nil,encoding=nil) super(start_mark,end_mark) @encoding = encoding end |
Instance Attribute Details
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
53 54 55 |
# File 'lib/rbyaml/events.rb', line 53 def encoding @encoding end |
Instance Method Details
#__is_stream_start ⇒ Object
58 |
# File 'lib/rbyaml/events.rb', line 58 def __is_stream_start; true; end |