Module: Mooncell::Command

Defined in:
lib/mooncell/command.rb

Overview

A Command Handler

Examples:

class Move
  include Mooncell::Command

  def call(params)
  end
end

Since:

  • 0.1.0

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ 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



18
19
20
21
22
23
24
25
# File 'lib/mooncell/command.rb', line 18

def self.included(base)
  base.class_eval do
    extend ClassMethods
    include InstanceMethods

    attr_reader :conn
  end
end