Class: RbYAML::Node

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

Direct Known Subclasses

CollectionNode, ScalarNode

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/nodes.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/nodes.rb', line 3

def start_mark
  @start_mark
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



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

def tag
  @tag
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



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

def value
  @value
end

Instance Method Details

#__is_collectionObject



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

def __is_collection; false; end

#__is_mappingObject



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

def __is_mapping; false; end

#__is_scalarObject



12
# File 'lib/rbyaml/nodes.rb', line 12

def __is_scalar; false; end

#__is_sequenceObject



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

def __is_sequence; false; end

#hashObject



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

def hash
  object_id
end

#to_sObject



8
9
10
# File 'lib/rbyaml/nodes.rb', line 8

def to_s
  "#{self.class.name}(tag=#{tag}, value=#{value})"
end