Module: Ni::Params::ClassMethods
- Defined in:
- lib/ni/params.rb
Instance Attribute Summary collapse
-
#mutate_contracts ⇒ Object
Returns the value of attribute mutate_contracts.
-
#provide_contracts ⇒ Object
Returns the value of attribute provide_contracts.
-
#receive_contracts ⇒ Object
Returns the value of attribute receive_contracts.
Instance Method Summary collapse
Instance Attribute Details
#mutate_contracts ⇒ Object
Returns the value of attribute mutate_contracts.
88 89 90 |
# File 'lib/ni/params.rb', line 88 def mutate_contracts @mutate_contracts end |
#provide_contracts ⇒ Object
Returns the value of attribute provide_contracts.
88 89 90 |
# File 'lib/ni/params.rb', line 88 def provide_contracts @provide_contracts end |
#receive_contracts ⇒ Object
Returns the value of attribute receive_contracts.
88 89 90 |
# File 'lib/ni/params.rb', line 88 def receive_contracts @receive_contracts end |
Instance Method Details
#mutate(*args) ⇒ Object
102 103 104 105 106 |
# File 'lib/ni/params.rb', line 102 def mutate(*args) @mutate_contracts ||= {} name = args.shift @mutate_contracts[name] = Mapper.perform(args) end |