Module: DCI

Defined in:
lib/wrapper_based/dci.rb

Constant Summary collapse

Module =
Class.new(TypeWrapper::Module)
@@casting_pool =
WrapperBased::Casting::Pool.new(TypeWrapper)

Class Method Summary collapse

Class Method Details

.Context(*roles, &block) ⇒ Object



9
10
11
# File 'lib/wrapper_based/dci.rb', line 9

def Context(*roles, &block)
  fail_on_wrong_talent_type { return @@casting_pool.context_for(*roles, &block) }
end

.Roles(*roles) ⇒ Object



13
14
15
# File 'lib/wrapper_based/dci.rb', line 13

def Roles(*roles)
  fail_on_wrong_talent_type { return @@casting_pool.casting_for(*roles) }
end