class Veto::MethodCheck

Public Class Methods

new(method_name) click to toggle source
# File lib/veto/checks/method_check.rb, line 3
def initialize(method_name)
  @method_name = method_name
end

Public Instance Methods

call(cco) click to toggle source
# File lib/veto/checks/method_check.rb, line 7
def call(cco)
  cco.context.send(@method_name, cco.entity)
end

Private Instance Methods

check(attribute_name, value, errors, options) click to toggle source
# File lib/veto/checks/method_check.rb, line 13
def check(attribute_name, value, errors, options)
  raise(NotImplementedError)
end