Class: GerritEventRouter::Config::Array

Inherits:
Array
  • Object
show all
Defined in:
lib/ger/config.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/ger/config.rb', line 5

def [](key)
  unless key.kind_of?(Integer)
    self.each do |item|
      if item.name == key then
        return item
      end
    end
    nil
  else
    super(key)
  end
end