Class: Furnace::AVM2::Tokens::XmlLiteralToken

Inherits:
Code::TerminalToken
  • Object
show all
Includes:
IsSimple
Defined in:
lib/furnace-avm2/source/implementation_tokens/xml_literal_token.rb

Instance Method Summary collapse

Methods included from IsSimple

#complex?

Constructor Details

#initialize(origin, text, options = {}) ⇒ XmlLiteralToken

Returns a new instance of XmlLiteralToken.



5
6
7
8
# File 'lib/furnace-avm2/source/implementation_tokens/xml_literal_token.rb', line 5

def initialize(origin, text, options={})
  super(origin, options)
  @text = text
end

Instance Method Details

#to_textObject



10
11
12
# File 'lib/furnace-avm2/source/implementation_tokens/xml_literal_token.rb', line 10

def to_text
  @text
end