Method: Mooncell::Command::InstanceMethods#respond
- Defined in:
- lib/mooncell/command.rb
#respond ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
72 73 74 75 |
# File 'lib/mooncell/command.rb', line 72 def respond name = self.class.name.sub(/Commands/, 'Responds') Kernel.const_get(name).new(self) end |