Class: MorseMeNicely::Obfuscator
- Inherits:
-
Object
- Object
- MorseMeNicely::Obfuscator
- Defined in:
- lib/morse_me_nicely/obfuscator.rb
Instance Method Summary collapse
-
#initialize(input_text) ⇒ Obfuscator
constructor
A new instance of Obfuscator.
- #obfuscated_input ⇒ Object
Constructor Details
#initialize(input_text) ⇒ Obfuscator
Returns a new instance of Obfuscator.
5 6 7 |
# File 'lib/morse_me_nicely/obfuscator.rb', line 5 def initialize(input_text) @input_text = input_text end |
Instance Method Details
#obfuscated_input ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/morse_me_nicely/obfuscator.rb', line 9 def process_dashes( process_dots( @input_text ) ) end |