Class: Members

Inherits:
Hash
  • Object
show all
Defined in:
lib/member.rb

Overview

collection of people in the club

Instance Method Summary collapse

Instance Method Details

#<<(person) ⇒ Object



7
8
9
# File 'lib/member.rb', line 7

def << person
  self[person.id.to_i] = person
end

#find_by_id(id) ⇒ Object



11
12
13
# File 'lib/member.rb', line 11

def find_by_id id
  self[id]
end