Sha256: 4dfb7feb13013b4ec2a675cce21ae7e0db8904909ca177c7946388cba73c48a1

Contents?: true

Size: 232 Bytes

Versions: 1

Compression:

Stored size: 232 Bytes

Contents

require 'language_cards/modes/game'
module LanguageCards
  module Modes
    class Translate < Game
      def match? input
        current.translation == input
      end

      def mode
        :translate
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
language_cards-0.2.0 lib/language_cards/modes/translate.rb