Class: LightweightAttributes::AttributeSet
- Inherits:
-
Object
- Object
- LightweightAttributes::AttributeSet
- Defined in:
- lib/lightweight_attributes/attribute_set.rb,
lib/lightweight_attributes/attribute_set/builder.rb
Defined Under Namespace
Classes: Builder
Instance Method Summary collapse
- #fetch_value(name) ⇒ Object
-
#initialize(attributes) ⇒ AttributeSet
constructor
A new instance of AttributeSet.
Constructor Details
#initialize(attributes) ⇒ AttributeSet
Returns a new instance of AttributeSet.
9 10 11 |
# File 'lib/lightweight_attributes/attribute_set.rb', line 9 def initialize(attributes) @attributes = attributes end |
Instance Method Details
#fetch_value(name) ⇒ Object
13 14 15 |
# File 'lib/lightweight_attributes/attribute_set.rb', line 13 def fetch_value(name) self[name] end |