Class: RbYAML::AliasToken

Inherits:
Token show all
Defined in:
lib/rbyaml/tokens.rb

Instance Attribute Summary collapse

Attributes inherited from Token

#end_mark, #start_mark

Instance Method Summary collapse

Methods inherited from Token

#__is_anchor, #__is_block_end, #__is_block_entry, #__is_block_mapping_start, #__is_block_sequence_start, #__is_directive, #__is_document_end, #__is_document_start, #__is_flow_entry, #__is_flow_mapping_end, #__is_flow_mapping_start, #__is_flow_sequence_end, #__is_flow_sequence_start, #__is_key, #__is_scalar, #__is_stream_end, #__is_stream_start, #__is_tag, #__is_value, #hash

Constructor Details

#initialize(value, start_mark, end_mark) ⇒ AliasToken

Returns a new instance of AliasToken.



160
161
162
163
# File 'lib/rbyaml/tokens.rb', line 160

def initialize(value, start_mark, end_mark)
  super(start_mark,end_mark)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



159
160
161
# File 'lib/rbyaml/tokens.rb', line 159

def value
  @value
end

Instance Method Details

#__is_aliasObject



155
# File 'lib/rbyaml/tokens.rb', line 155

def __is_alias; true; end

#tidObject



156
157
158
# File 'lib/rbyaml/tokens.rb', line 156

def tid
  "<alias>"
end