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.

Since:

  • 0.1.0

Instance Method Summary collapse

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.

Since:

  • 0.1.0



66
67
68
# File 'lib/mooncell/command.rb', line 66

def initialize(conn)
  @conn = conn
end

#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