Class: Rux::TokenArrayProxy
- Inherits:
-
Array
- Object
- Array
- Rux::TokenArrayProxy
- Defined in:
- lib/rux/ruby_lexer.rb
Instance Method Summary collapse
-
#initialize(rux_token_queue) ⇒ TokenArrayProxy
constructor
A new instance of TokenArrayProxy.
- #push(token) ⇒ Object
Constructor Details
#initialize(rux_token_queue) ⇒ TokenArrayProxy
Returns a new instance of TokenArrayProxy.
3 4 5 |
# File 'lib/rux/ruby_lexer.rb', line 3 def initialize(rux_token_queue) @rux_token_queue = rux_token_queue end |
Instance Method Details
#push(token) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rux/ruby_lexer.rb', line 7 def push(token) if token[0] == :tCOMMENT @rux_token_queue.push(token) end super end |