Sha256: 5e82ad4615ac796aeb37bf1a50acc0c2172989efc8720cc6d3134d902c0b64d2

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

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

      def mode
        :translate
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
language_cards-0.3.2 lib/language_cards/modes/translate.rb
language_cards-0.3.1 lib/language_cards/modes/translate.rb
language_cards-0.3.0 lib/language_cards/modes/translate.rb