Sha256: 5569e87657150a170a0deb34207e841a4182dfacc613f1924773e4e8888d59e0

Contents?: true

Size: 292 Bytes

Versions: 10

Compression:

Stored size: 292 Bytes

Contents

module MediaTypes
  class Scheme
    class EnumerationContext
      def initialize(validations:)
        self.validations = validations
      end

      def enumerate(val)
        self.key = val
        self
      end

      attr_accessor :validations, :key
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
media_types-0.4.1 lib/media_types/scheme/enumeration_context.rb
media_types-0.4.0 lib/media_types/scheme/enumeration_context.rb
media_types-0.3.0 lib/media_types/scheme/enumeration_context.rb
media_types-0.2.6 lib/media_types/scheme/enumeration_context.rb
media_types-0.2.5 lib/media_types/scheme/enumeration_context.rb
media_types-0.2.4 lib/media_types/scheme/enumeration_context.rb
media_types-0.2.3 lib/media_types/scheme/enumeration_context.rb
media_types-0.2.2 lib/media_types/scheme/enumeration_context.rb
media_types-0.2.1 lib/media_types/scheme/enumeration_context.rb
media_types-0.2.0 lib/media_types/scheme/enumeration_context.rb