Class: RbYAML::DocumentStartEvent

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_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,tags=nil)
  super(start_mark,end_mark)
  @explicit = explicit
  @version = version
  @tags = tags
end

Instance Attribute Details

#explicitObject (readonly)

Returns the value of attribute explicit.



66
67
68
# File 'lib/rbyaml/events.rb', line 66

def explicit
  @explicit
end

#tagsObject (readonly)

Returns the value of attribute tags.



66
67
68
# File 'lib/rbyaml/events.rb', line 66

def tags
  @tags
end

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



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

def __is_document_start; true; end