# File active_record.rb, line 53 def self.find(option=:all) if option==:all if block_given? return @@all.select{|o|yield o} else return @@all end elsif option.kind_of? Integer objs=@@all.select{|o|o.id==option} return objs[0] end end