Class: Sortah::Destinations

Inherits:
ComponentCollection show all
Defined in:
lib/sortah/components/destination.rb

Instance Method Summary collapse

Methods inherited from ComponentCollection

#<<, #defined?, #valid?

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