Sha256: f6e03606e272977cc11bcbc601d047570857b1881f09f227d9221bec8f61cc78
Contents?: true
Size: 1002 Bytes
Versions: 2
Compression:
Stored size: 1002 Bytes
Contents
require 'language_cards/version' require 'language_cards/language_cards' require 'yaml' require 'i18n' require 'highline' ## # TODO: # * Implement score-keeper # * Race against the clock # * Weighted random for better learning # * Value to Value is simply keyboard practice and should be clocked # * Finish building Hiragana cards (figure out duplicates for ja, ju, jo) module LanguageCards CLEAR = begin require 'mkmf' clear = case RbConfig::CONFIG['target_os'] when /mingw32|mswin/ MakeMakefile.find_executable('cls') else MakeMakefile.find_executable('clear') end clear ? `#{clear}` : "\e[3J\e[H\e[2J" ensure File.delete('mkmf.log') end CLI = HighLine.new JOIN = " : " SUBMENUWIDTH = 60 ::I18n.load_path = Dir[File.join(File.expand_path(File.join('..','..'), __FILE__), 'locales', '*.yml')] def self.start LanguageCards.new.start end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
language_cards-0.0.3 | lib/language_cards.rb |
language_cards-0.0.2 | lib/language_cards.rb |