Class: DataMapper::Model::Hook::MethodCommand
- Defined in:
- lib/dm-core/model/hook.rb
Instance Method Summary collapse
- #call(resource) ⇒ Object
- #copy(model) ⇒ Object
-
#initialize(model, method) ⇒ MethodCommand
constructor
A new instance of MethodCommand.
Constructor Details
#initialize(model, method) ⇒ MethodCommand
Returns a new instance of MethodCommand.
86 87 88 |
# File 'lib/dm-core/model/hook.rb', line 86 def initialize(model, method) @model, @method = model, method.to_sym end |