Module: Ruby::Conversions::Token

Included in:
Token
Defined in:
lib/ruby/node/conversions.rb

Instance Method Summary collapse

Instance Method Details

#to_identifierObject



30
31
32
# File 'lib/ruby/node/conversions.rb', line 30

def to_identifier
  Identifier.new(token, position, prolog)
end

#to_string_contentObject



34
35
36
# File 'lib/ruby/node/conversions.rb', line 34

def to_string_content
  Ruby::StringContent.new(token, position, prolog)
end