Class: Colonel::Parser::Command
- Inherits:
-
Object
- Object
- Colonel::Parser::Command
- Defined in:
- lib/colonel/parser.rb
Instance Method Summary collapse
- #exist? ⇒ Boolean
- #get ⇒ Object
-
#initialize(data) ⇒ Command
constructor
A new instance of Command.
Constructor Details
Instance Method Details
#exist? ⇒ Boolean
63 64 65 |
# File 'lib/colonel/parser.rb', line 63 def exist? @_string.size > 0 end |
#get ⇒ Object
59 60 61 |
# File 'lib/colonel/parser.rb', line 59 def get @_string ||= @command_tokens.join(' ') end |