Class: RbYAML::TagToken

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Token

#__is_alias, #__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_value, #hash

Constructor Details

#initialize(value) ⇒ TagToken

Returns a new instance of TagToken.



177
178
179
# File 'lib/rbyaml/tokens.rb', line 177

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



176
177
178
# File 'lib/rbyaml/tokens.rb', line 176

def value
  @value
end

Instance Method Details

#__is_tagObject



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

def __is_tag; true; end

#tidObject



173
174
175
# File 'lib/rbyaml/tokens.rb', line 173

def tid
  "<tag>"
end