Sha256: 85ed82c962e7d0267ac2bca1144a0754e189fa1f88c63987c65371a98191b51a

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  class ConfigLoader
    class KeywordArgumentSchema < ValueOrObjectSchema
      inherit_attributes_from StringPatternSchema, except: :unless
      attribute :type, ValueOrArraySchema[ValueTypeSchema], require_group: :matcher
      attribute :unless, ValueOrArraySchema[KeywordArgumentSchema], require_group: :matcher

      self.or_value_schema = StringSchema
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/config_loader/keyword_argument_schema.rb
leftovers-0.12.1 lib/leftovers/config_loader/keyword_argument_schema.rb
leftovers-0.12.0 lib/leftovers/config_loader/keyword_argument_schema.rb
leftovers-0.11.2 lib/leftovers/config_loader/keyword_argument_schema.rb
leftovers-0.11.1 lib/leftovers/config_loader/keyword_argument_schema.rb
leftovers-0.11.0 lib/leftovers/config_loader/keyword_argument_schema.rb
leftovers-0.10.0 lib/leftovers/config_loader/keyword_argument_schema.rb
leftovers-0.9.0 lib/leftovers/config_loader/keyword_argument_schema.rb