Class: LightweightAttributes::AttributeSet

Inherits:
Object
  • Object
show all
Defined in:
lib/lightweight_attributes/attribute_set.rb,
lib/lightweight_attributes/attribute_set/builder.rb

Defined Under Namespace

Classes: Builder

Instance Method Summary collapse

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