Sha256: 552a6c8b06a22efc538f682239e168e043c542810b33946d5f1aad8b3012ff16
Contents?: true
Size: 314 Bytes
Versions: 1
Compression:
Stored size: 314 Bytes
Contents
class Player attr_accessor :name,:position, :age, :height, :weight @@all = [] def initialize(hash) hash.each{|key, value| self.send("#{key}=", value)} self.class.all << self end def self.all @@all end def self.reset self.all.clear end def self.count self.all.length end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redbull_team-0.2.0 | lib/redbull_team/player.rb |