Class: ProgramR::Star

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

Returns a new instance of Star.


288
289
290
291
292
293
# File 'lib/programr/aiml_elements.rb', line 288

def initialize aStarName, someAttributes, history
  @history = history
  @star = aStarName
  @index = 0
  @index = someAttributes['index'].to_i - 1 unless someAttributes.empty?
end

Instance Method Details

#executeObject


295
296
297
# File 'lib/programr/aiml_elements.rb', line 295

def execute
  to_response get_star
end