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
Constructor Details
This class inherits a constructor from MorseCode::Decoders::Base
Instance Method Details
#decode ⇒ Object
12 13 14 |
# File 'lib/morse_code/decoders/english.rb', line 12 def decode MorseCode::DECODE_MAP[word] end |
#supported? ⇒ Boolean
8 9 10 |
# File 'lib/morse_code/decoders/english.rb', line 8 def supported? !MorseCode::DECODE_MAP[word].nil? end |