Sha256: 97c83389f01c8bb2fc7220288aacc376e6adcc8fad4a2f1c19f5ee7cc709d2db
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
# frozen_string_literal: true require_relative 'attribute_set/builder' module LightweightAttributes class AttributeSet delegate :each_value, :fetch, :except, :[], :[]=, :key?, :keys, to: :attributes def initialize(attributes) @attributes = attributes end def fetch_value(name) self[name] end private attr_reader :attributes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lightweight_attributes-0.1.1 | lib/lightweight_attributes/attribute_set.rb |
lightweight_attributes-0.1.0 | lib/lightweight_attributes/attribute_set.rb |