Class: Furnace::AVM2::Tokens::UnaryOperatorToken
- Inherits:
-
Code::SurroundedToken
- Object
- Code::SurroundedToken
- Furnace::AVM2::Tokens::UnaryOperatorToken
- Includes:
- IsSimple
- Defined in:
- lib/furnace-avm2/source/implementation_tokens/unary_operator_token.rb
Instance Method Summary collapse
-
#initialize(origin, child, operator, options = {}) ⇒ UnaryOperatorToken
constructor
A new instance of UnaryOperatorToken.
- #text_before ⇒ Object
Methods included from IsSimple
Constructor Details
#initialize(origin, child, operator, options = {}) ⇒ UnaryOperatorToken
Returns a new instance of UnaryOperatorToken.
5 6 7 8 |
# File 'lib/furnace-avm2/source/implementation_tokens/unary_operator_token.rb', line 5 def initialize(origin, child, operator, ={}) super(origin, [ child ], ) @operator = operator end |
Instance Method Details
#text_before ⇒ Object
10 11 12 |
# File 'lib/furnace-avm2/source/implementation_tokens/unary_operator_token.rb', line 10 def text_before @operator.to_s end |