Method: Mooncell::Command::InstanceMethods#respond

Defined in:
lib/mooncell/command.rb

#respondObject

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.

Since:

  • 0.1.0



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