Sha256: b7b221899072e8fc720d034ede72602d552c6500af1d3b9cba71eb0a95b0729b
Contents?: true
Size: 778 Bytes
Versions: 5
Compression:
Stored size: 778 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 module LanguageCards module ESC CLEAR = (ERASE_SCOLLBACK = "\e[3J") + (CURSOR_HOME = "\e[H") + (ERASE_DISPLAY = "\e[2J") end CLI = HighLine.new JOIN = " : " SUBMENUWIDTH = 60 ::I18n.load_path = Dir[File.join(File.expand_path(File.join('..','..'), __FILE__), 'locales', '*.yml')] ::I18n.load_path += Dir[File.join(File.expand_path(ENV['HOME']), '.language_cards', 'locales', '*.yml')] if ENV['HOME'] def self.start LanguageCards.new.start end end
Version data entries
5 entries across 5 versions & 1 rubygems