Class: ProgramR::AimlTag

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

Instance Method Summary collapse

Instance Method Details

#inspectObject


4
5
6
7
# File 'lib/programr/aiml_elements.rb', line 4

def inspect
  inspect_str = respond_to?(:to_inspect, true) ? to_inspect : execute
  "<#{self.class.name.demodulize.tableize.singularize} -> #{inspect_str}>"
end

#to_sObject


9
10
11
# File 'lib/programr/aiml_elements.rb', line 9

def to_s
  respond_to?(:execute) ? execute : super
end