Class: RbYAML::StreamStartEvent

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

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_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

#encodingObject (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_startObject



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

def __is_stream_start; true; end