Class: MorseMeNicely::Obfuscator

Inherits:
Object
  • Object
show all
Defined in:
lib/morse_me_nicely/obfuscator.rb

Instance Method Summary collapse

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_inputObject



9
10
11
12
13
14
15
# File 'lib/morse_me_nicely/obfuscator.rb', line 9

def obfuscated_input
  process_dashes(
    process_dots(
      @input_text
    )
  )
end