Class: MorseCode::Decoders::English
- Defined in:
- lib/morse_code/decoders/english.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
inherited, #initialize, #supported_class, #supported_classes
Constructor Details
This class inherits a constructor from MorseCode::Base
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/morse_code/decoders/english.rb', line 13 def call MorseCode::DECODE_MAP[word] end |
#supported? ⇒ Boolean
9 10 11 |
# File 'lib/morse_code/decoders/english.rb', line 9 def supported? !MorseCode::DECODE_MAP[word].nil? end |