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

Version Path
soccer-quiz-0.2.4 lib/quiz/champion_league.rb
soccer-quiz-0.2.3 lib/quiz/champion_league.rb
soccer-quiz-0.2.2 lib/quiz/champion_league.rb
soccer-quiz-0.2.1 lib/quiz/champion_league.rb
soccer-quiz-0.1.8 lib/quiz/champion_league.rb
soccer-quiz-0.1.7 lib/quiz/champion_league.rb
soccer-quiz-0.1.6 lib/quiz/champion_league.rb
soccer-quiz-0.1.5 lib/quiz/champion_league.rb
soccer-quiz-0.1.4 lib/quiz/champion_league.rb