Class: Morseficator::WordEncoder

Inherits:
LineEncoder show all
Defined in:
lib/morseficator/word_encoder.rb

Overview

Encodes a word letter by letter joining the result using a separator

Constant Summary collapse

SEPARATOR =
'|'
SPLIT_BY =
''

Class Method Summary collapse

Methods inherited from LineEncoder

#call, #initialize

Constructor Details

This class inherits a constructor from Morseficator::LineEncoder

Class Method Details

.encode(*args) ⇒ Object



6
7
8
# File 'lib/morseficator/word_encoder.rb', line 6

def self.encode(*args)
  new(*args).call
end