Sha256: 87ae040cd6c15e4518d3bdb2fc793d88b018b820dba73efe102dca5ab6100722

Contents?: true

Size: 441 Bytes

Versions: 7

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  class ConfigLoader
    class HasReceiverSchema < ValueOrObjectSchema
      inherit_attributes_from HasValueSchema, except: :unless

      attribute :literal, ValueOrArraySchema[ScalarValueSchema],
                require_group: :matcher
      attribute :unless, ValueOrArraySchema[HasReceiverSchema], require_group: :matcher

      self.or_value_schema = ScalarValueSchema
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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