Class: Ellipses::Client::Parser::Lexeme
- Inherits:
-
Struct
- Object
- Struct
- Ellipses::Client::Parser::Lexeme
- Defined in:
- lib/ellipses/client/parser.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
Returns the value of attribute argv.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#argv ⇒ Object
Returns the value of attribute argv
20 21 22 |
# File 'lib/ellipses/client/parser.rb', line 20 def argv @argv end |
#token ⇒ Object
Returns the value of attribute token
20 21 22 |
# File 'lib/ellipses/client/parser.rb', line 20 def token @token end |
Class Method Details
.from_strings(strings) ⇒ Object
21 22 23 |
# File 'lib/ellipses/client/parser.rb', line 21 def self.from_strings(strings) new token: strings.shift.downcase, argv: strings end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/ellipses/client/parser.rb', line 25 def to_s token end |