Module: Ardm::Ar::Is::ClassMethods

Defined in:
lib/ardm/ar/is.rb

Instance Method Summary collapse

Instance Method Details

#is(target, options = {}, &block) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/ardm/ar/is.rb', line 10

def is(target, options={}, &block)
  case target
  when :state_machine
    include Ardm::Ar::Is::StateMachine
    is_state_machine(options, &block)
  else
    STDERR.puts "TODO: #{self} is #{target.inspect}, #{options.inspect}"
  end
end