Class: ProgramR::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/programr/aiml_elements.rb

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Command

Returns a new instance of Command.



346
# File 'lib/programr/aiml_elements.rb', line 346

def initialize(text) @command = text end

Instance Method Details

#executeObject Also known as: to_s



347
# File 'lib/programr/aiml_elements.rb', line 347

def execute; `#{@command}` end

#inspectObject



349
# File 'lib/programr/aiml_elements.rb', line 349

def inspect() "cmd -> #{@command}" end