Class: Veto::MethodCheck
Instance Method Summary collapse
- #call(cco) ⇒ Object
-
#initialize(method_name) ⇒ MethodCheck
constructor
A new instance of MethodCheck.
Constructor Details
#initialize(method_name) ⇒ MethodCheck
Returns a new instance of MethodCheck.
3 4 5 |
# File 'lib/veto/checks/method_check.rb', line 3 def initialize(method_name) @method_name = method_name end |
Instance Method Details
#call(cco) ⇒ Object
7 8 9 |
# File 'lib/veto/checks/method_check.rb', line 7 def call(cco) cco.context.send(@method_name, cco.entity) end |