Sha256: 58e8c12bd8f272b805f060bf799df4f6c7f520080b085a32a6842334916d2c81
Contents?: true
Size: 363 Bytes
Versions: 14
Compression:
Stored size: 363 Bytes
Contents
class Quiz::Worldcup attr_accessor :winner, :year, :host, :runner_up, :thirth_place @@all = [] def initialize(file) @@all << self file.each{|key,value| self.send("#{key}=", value)} end def self.world_cup_file(file) file.each{|e|Quiz::Worldcup.new(e)} end def self.all @@all end end
Version data entries
14 entries across 14 versions & 2 rubygems