Class: MorseMeNicely::Processor

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

Class Method Summary collapse

Class Method Details

.encode(input_text, without_obfuscation = false) ⇒ Object



19
20
21
22
23
# File 'lib/morse_me_nicely.rb', line 19

def self.encode(input_text, without_obfuscation=false)
  text = Encoder.new(input_text).encoded_input
  text = Obfuscator.new(text).obfuscated_input unless without_obfuscation
  text
end