Class: Sortah::Destinations
- Inherits:
-
ComponentCollection
- Object
- Hash
- ComponentCollection
- Sortah::Destinations
- Defined in:
- lib/sortah/components/destination.rb
Instance Method Summary collapse
Methods inherited from ComponentCollection
Instance Method Details
#[](key) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/sortah/components/destination.rb', line 5 def [](key) value = self.fetch(key) if value.alias? self.fetch(value.path) else value end end |