Class: RbYAML::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_markObject

Returns the value of attribute end_mark

Returns:

  • (Object)

    the current value of end_mark



3
4
5
# File 'lib/rbyaml/events.rb', line 3

def end_mark
  @end_mark
end

#start_markObject

Returns the value of attribute start_mark

Returns:

  • (Object)

    the current value of start_mark



3
4
5
# File 'lib/rbyaml/events.rb', line 3

def start_mark
  @start_mark
end

Instance Method Details

#__is_aliasObject



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

def __is_alias; false; end

#__is_collection_endObject



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

def __is_collection_end; false; end

#__is_collection_startObject



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

def __is_collection_start; false; end

#__is_document_endObject



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

def __is_document_end; false; end

#__is_document_startObject



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

def __is_document_start; false; end

#__is_mapping_endObject



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

def __is_mapping_end; false; end

#__is_mapping_startObject



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

def __is_mapping_start; false; end

#__is_nodeObject



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

def __is_node; false; end

#__is_scalarObject



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

def __is_scalar; false; end

#__is_sequence_endObject



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

def __is_sequence_end; false; end

#__is_sequence_startObject



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

def __is_sequence_start; false; end

#__is_stream_endObject



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

def __is_stream_end; false; end

#__is_stream_startObject



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

def __is_stream_start; false; end

#hashObject



5
6
7
# File 'lib/rbyaml/events.rb', line 5

def hash
  object_id
end

#to_sObject



8
9
10
11
12
# File 'lib/rbyaml/events.rb', line 8

def to_s
  attributes = ["@anchor","@tag","@implicit","@value"] & self.instance_variables
  args = attributes.collect {|val| "#{val[1..-1]}=" + eval("#{val}").to_s}.join(", ")
  "#{self.class.name}(#{args})"
end