Class: Furnace::AVM2::Tokens::BinaryOperatorToken
- Inherits:
-
Code::SeparatedToken
- Object
- Code::SeparatedToken
- Furnace::AVM2::Tokens::BinaryOperatorToken
- Includes:
- IsComplex
- Defined in:
- lib/furnace-avm2/source/implementation_tokens/binary_operator_token.rb
Instance Method Summary collapse
-
#initialize(origin, children, operator, options = {}) ⇒ BinaryOperatorToken
constructor
A new instance of BinaryOperatorToken.
- #text_between ⇒ Object
Methods included from IsComplex
Constructor Details
#initialize(origin, children, operator, options = {}) ⇒ BinaryOperatorToken
Returns a new instance of BinaryOperatorToken.
5 6 7 8 |
# File 'lib/furnace-avm2/source/implementation_tokens/binary_operator_token.rb', line 5 def initialize(origin, children, operator, ={}) super(origin, children, ) @operator = operator end |
Instance Method Details
#text_between ⇒ Object
10 11 12 |
# File 'lib/furnace-avm2/source/implementation_tokens/binary_operator_token.rb', line 10 def text_between " #{@operator} " end |