Class: Veto::MethodCheck

Inherits:
Check
  • Object
show all
Defined in:
lib/veto/checks/method_check.rb

Instance Method Summary collapse

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