Class: AD::Framework::Config::Mapping
- Inherits:
-
Hash
- Object
- Hash
- AD::Framework::Config::Mapping
- Defined in:
- lib/ad-framework/config/mapping.rb
Instance Method Summary collapse
- #[](lookup) ⇒ Object
- #[]=(lookup, object) ⇒ Object
- #add(lookup, object) ⇒ Object
- #find(lookup) ⇒ Object
Instance Method Details
#[](lookup) ⇒ Object
7 8 9 |
# File 'lib/ad-framework/config/mapping.rb', line 7 def [](lookup) super(lookup.to_sym) end |
#[]=(lookup, object) ⇒ Object
14 15 16 |
# File 'lib/ad-framework/config/mapping.rb', line 14 def []=(lookup, object) super(lookup.to_sym, object) end |
#add(lookup, object) ⇒ Object
18 19 20 |
# File 'lib/ad-framework/config/mapping.rb', line 18 def add(lookup, object) self[lookup] = object end |
#find(lookup) ⇒ Object
10 11 12 |
# File 'lib/ad-framework/config/mapping.rb', line 10 def find(lookup) self[lookup] end |