Class: MilkTea::TriviaTokenStream
- Inherits:
-
Object
- Object
- MilkTea::TriviaTokenStream
- Defined in:
- lib/milk_tea/core/token_stream.rb
Instance Attribute Summary collapse
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
-
#trivia ⇒ Object
readonly
Returns the value of attribute trivia.
Instance Method Summary collapse
-
#initialize(tokens, trivia) ⇒ TriviaTokenStream
constructor
A new instance of TriviaTokenStream.
Constructor Details
#initialize(tokens, trivia) ⇒ TriviaTokenStream
Returns a new instance of TriviaTokenStream.
25 26 27 28 |
# File 'lib/milk_tea/core/token_stream.rb', line 25 def initialize(tokens, trivia) @tokens = tokens @trivia = trivia end |
Instance Attribute Details
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
23 24 25 |
# File 'lib/milk_tea/core/token_stream.rb', line 23 def tokens @tokens end |
#trivia ⇒ Object (readonly)
Returns the value of attribute trivia.
23 24 25 |
# File 'lib/milk_tea/core/token_stream.rb', line 23 def trivia @trivia end |