Sha256: 31bce18624bc7d54f04da40aa081ff0979a616b32e31295c8ffdfb2b8cc8977b

Contents?: true

Size: 343 Bytes

Versions: 4

Compression:

Stored size: 343 Bytes

Contents

require 'delegate'

module Restspec
  module Stores
    class SchemaStoreDelegator < SimpleDelegator
      def store(schema)
        self[schema.name] = schema
      end

      def get(schema_name)
        self[schema_name]
      end
    end

    SchemaStore = SchemaStoreDelegator.new(Hash.new)
  end

  SchemaStore = Stores::SchemaStore
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restspec-0.0.4 lib/restspec/stores/schema_store.rb
restspec-0.0.3 lib/restspec/stores/schema_store.rb
restspec-0.0.2 lib/restspec/stores/schema_store.rb
restspec-0.0.1 lib/restspec/stores/schema_store.rb