Module: Komando

Defined in:
lib/komando.rb,
lib/komando/command.rb,
lib/komando/version.rb,
lib/komando/command/dsl.rb,
lib/komando/persistence.rb,
lib/komando/persistence/active_record.rb

Overview

The main Komando module. Holder for declarations.

Defined Under Namespace

Modules: Command, Persistence, Version Classes: MissingMandatoryStepsError

Class Method Summary collapse

Class Method Details

.make_command(base) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/komando.rb', line 9

def self.make_command(base)
  base.send :include, Komando::Command
  base.send :extend, Komando::Command::Dsl
  if defined?(ActiveRecord) then
    require "komando/persistence/active_record"
    base.send :include, Komando::Persistence::ActiveRecord
  end
end