Module: Command

Defined in:
lib/cqs/command.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
# File 'lib/cqs/command.rb', line 4

def self.included(base)
  base.extend Cqs::Base
  base.extend(ClassMethods)
  base.register_method :with
end

Instance Method Details

#executeObject



20
21
22
# File 'lib/cqs/command.rb', line 20

def execute
  raise CommandNotFound.new "I'm really sorry, but that command doesn't exist."
end