class EasyJSONMatcher::ValidationRule
Attributes
rule[R]
type[R]
Public Class Methods
new(type, rule)
click to toggle source
# File lib/easy_json_matcher/validation_rules.rb, line 7 def initialize(type, rule) @type = type @rule = rule end
Public Instance Methods
call(value, errors)
click to toggle source
# File lib/easy_json_matcher/validation_rules.rb, line 12 def call(value, errors) rule.call(value, errors) end