Class: DNZ::FacetArray

Inherits:
Array
  • Object
show all
Defined in:
lib/dnz/facet.rb

Instance Method Summary collapse

Instance Method Details

#[](value) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/dnz/facet.rb', line 6

def [](value)
  if value.is_a?(String) || value.is_a?(Symbol)
    self.detect{|f| f.name == value.to_s }
  else
    super
  end
end