Class: ProgramR::Input

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(someAttributes, history) ⇒ Input


270
271
272
273
274
# File 'lib/programr/aiml_elements.rb', line 270

def initialize someAttributes, history
  @history = history
  @index = 1
  @index = someAttributes['index'].to_i if someAttributes.has_key?('index')
end

Instance Method Details

#executeObject


276
277
278
# File 'lib/programr/aiml_elements.rb', line 276

def execute
  to_response to_inspect
end