Module: Mooncell::Command::InstanceMethods Private
- Defined in:
- lib/mooncell/command.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #initialize(conn) ⇒ Object private
- #respond ⇒ Object private
Instance Method Details
#initialize(conn) ⇒ 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.
66 67 68 |
# File 'lib/mooncell/command.rb', line 66 def initialize(conn) @conn = conn end |
#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 |