lib/checkability/validator.rb in checkability-0.5.0 vs lib/checkability/validator.rb in checkability-0.6.0

- old
+ new

@@ -1,13 +1,13 @@ # frozen_string_literal: true module Checkability # Checks if postcode comply with regex # - class Validator + class Validator < ChainOfResp::AbstractHandler attr_reader :format - def initialize(conf = {}) + def post_initialize(conf = {}) @format = conf[:format] end def check_value(checkable) result, message = _result_and_message(checkable)