Method: GraphQL::Schema::Validator::FormatValidator#initialize
- Defined in:
- lib/graphql/schema/validator/format_validator.rb
#initialize(with: nil, without: nil, message: "%{validated} is invalid", **default_options) ⇒ FormatValidator
Returns a new instance of FormatValidator.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/graphql/schema/validator/format_validator.rb', line 24 def initialize( with: nil, without: nil, message: "%{validated} is invalid", ** ) @with_pattern = with @without_pattern = without @message = super(**) end |