class Fluffery::Forms::Validation::Pattern

Public Class Methods

create(attribute, options, matcher) click to toggle source
# File lib/fluffery/forms/validation/validators.rb, line 13
def self.create(attribute, options, matcher)
  options.reverse_merge!('pattern' => matcher.source) unless matcher.nil?
  options
end