Class: Cubicle::MemberList

Inherits:
Array
  • Object
show all
Defined in:
lib/cubicle/member_list.rb

Instance Method Summary collapse

Instance Method Details

#[](member_name) ⇒ Object



3
4
5
6
7
8
# File 'lib/cubicle/member_list.rb', line 3

def [](member_name)
  if (member_name.is_a?(Integer))
    return super(member_name)
  end
  self.find{|m|m.matches(member_name)}
end