Class: ProgramR::Command

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

Instance Method Summary collapse

Methods inherited from AimlTag

#inspect, #to_s

Constructor Details

#initialize(text) ⇒ Command


373
374
375
# File 'lib/programr/aiml_elements.rb', line 373

def initialize text
  @command = text
end

Instance Method Details

#executeObject


377
378
379
# File 'lib/programr/aiml_elements.rb', line 377

def execute
  to_response `#{@command}`
end