Class: Jaina::Parser::Tokenizer::Token Private
- Inherits:
-
Object
- Object
- Jaina::Parser::Tokenizer::Token
- Defined in:
- lib/jaina/parser/tokenizer/token.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #arguments ⇒ Array<String> readonly private
- #raw_token ⇒ String readonly private
- #token ⇒ String readonly private
Instance Method Summary collapse
- #dup ⇒ Jaina::Parser::Tokenizer::Token private
- #initialize(raw_token, token, *arguments) ⇒ void constructor private
- #to_s ⇒ String private
Constructor Details
#initialize(raw_token, token, *arguments) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
31 32 33 34 35 |
# File 'lib/jaina/parser/tokenizer/token.rb', line 31 def initialize(raw_token, token, *arguments) @raw_token = raw_token @token = token @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Array<String> (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/jaina/parser/tokenizer/token.rb', line 22 def arguments @arguments end |
#raw_token ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/jaina/parser/tokenizer/token.rb', line 10 def raw_token @raw_token end |
#token ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/jaina/parser/tokenizer/token.rb', line 16 def token @token end |
Instance Method Details
#dup ⇒ Jaina::Parser::Tokenizer::Token
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
41 42 43 |
# File 'lib/jaina/parser/tokenizer/token.rb', line 41 def dup self.class.new(raw_token.dup, token.dup, *arguments) end |
#to_s ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
49 50 51 |
# File 'lib/jaina/parser/tokenizer/token.rb', line 49 def to_s raw_token end |