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