Sha256: 3be40ba354ffe38b0e8c688caa6b3c5a2afbcf518d257cb45b4c11348312c5c6

Contents?: true

Size: 407 Bytes

Versions: 9

Compression:

Stored size: 407 Bytes

Contents

module ActiveTriples
  class Configuration
    # Basic configuration item which overrides the value for a key on the object.
    class Item
      attr_reader :object, :key
      def initialize(object, key)
        @object = object
        @key = key
      end

      def value
        object.inner_hash[key]
      end

      def set(value)
        object.inner_hash[key] = value
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active-triples-0.7.6 lib/active_triples/configuration/item.rb
active-triples-0.7.5 lib/active_triples/configuration/item.rb
active-triples-0.7.4 lib/active_triples/configuration/item.rb
active-triples-0.7.3 lib/active_triples/configuration/item.rb
active-triples-0.7.2 lib/active_triples/configuration/item.rb
active-triples-0.7.1 lib/active_triples/configuration/item.rb
active-triples-0.8.1 lib/active_triples/configuration/item.rb
active-triples-0.8.0 lib/active_triples/configuration/item.rb
active-triples-0.7.0 lib/active_triples/configuration/item.rb