lib/codebreaker/output.rb in codebreaker_kub-0.1.8 vs lib/codebreaker/output.rb in codebreaker_kub-0.1.9

- old
+ new

@@ -2,11 +2,11 @@ class Output attr_reader :stats def initialize I18n.load_path << Dir[File.expand_path(File.join(File.dirname(__FILE__), 'data/locales/')) + '/*.yml'] I18n.config.available_locales = :en - @stats = Codebreaker::Loader.load('stat') + @stats = Codebreaker::Loader.load('stats') end def greeting puts I18n.t(:hey) end @@ -55,11 +55,10 @@ puts I18n.t(:get_hint) end def no_hints puts I18n.t(:no_hints) - puts I18n.t(:code) end def choose_difficulty puts I18n.t(:choose_difficulty) end @@ -80,20 +79,17 @@ puts I18n.t(:win) end def lose puts I18n.t(:lose) + puts I18n.t(:code) end def save_result puts I18n.t(:save_result) end def goodbye puts I18n.t(:goodbye) - end - - def game_over - puts I18n.t(:game_over) end end end