Class: Ellipses::Client::Parser::Lexeme

Inherits:
Struct
  • Object
show all
Defined in:
lib/ellipses/client/parser.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argvObject

Returns the value of attribute argv

Returns:

  • (Object)

    the current value of argv



20
21
22
# File 'lib/ellipses/client/parser.rb', line 20

def argv
  @argv
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of 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_sObject



25
26
27
# File 'lib/ellipses/client/parser.rb', line 25

def to_s
  token
end