Sha256: 7be45feee6759568bf420b38158938522f7ecabe8f08a4001b79dc7c25cfba55
Contents?: true
Size: 377 Bytes
Versions: 9
Compression:
Stored size: 377 Bytes
Contents
class Quiz::CHAMPIONLEAGUE attr_accessor :year, :winner, :runner_up, :host, :score @@all = [] def initialize(file) @@all << self file.each{|key,value| self.send("#{key}=", value)} end def self.champion_league_files(file) file.each{|e|Quiz::CHAMPIONLEAGUE.new(e)} end def self.all @@all end end
Version data entries
9 entries across 9 versions & 1 rubygems