Class: DataMapper::Model::Hook::ProcCommand
- Defined in:
- lib/dm-core/model/hook.rb
Instance Method Summary collapse
- #call(resource) ⇒ Object
- #copy(model) ⇒ Object
-
#initialize(proc) ⇒ ProcCommand
constructor
A new instance of ProcCommand.
Constructor Details
#initialize(proc) ⇒ ProcCommand
Returns a new instance of ProcCommand.
72 73 74 |
# File 'lib/dm-core/model/hook.rb', line 72 def initialize(proc) @proc = proc.to_proc end |