Sha256: f59c7b0530a5f2e0b3265f738d91af5d4a934eaeffd7710e1dda55ec4e641e90

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

require_relative 'card_collection'
require_relative 'user_interface'

module LanguageCards
  class LanguageCards
    def initialize
      @CARDS = {}
      Dir[File.join 'cards', '*.yml'].each do |c|
        @CARDS.merge!(YAML.load(File.open(c).read))
      end
      @CARDS = CardCollection.new @CARDS
    end

    def start
      UserInterface.new.start(@CARDS)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
language_cards-0.0.2 lib/language_cards/language_cards.rb
language_cards-0.0.1 lib/language_cards/language_cards.rb