Class: Alphabet::Unaccenter

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

Overview

Worker ## todo/change - find a better name - why? why not?

Instance Method Summary collapse

Constructor Details

#initialize(mapping) ⇒ Unaccenter

Returns a new instance of Unaccenter.



42
43
44
# File 'lib/alphabets/utils.rb', line 42

def initialize( mapping )
  @mapping = mapping
end

Instance Method Details

#count(freq) ⇒ Object



46
# File 'lib/alphabets/utils.rb', line 46

def count( freq )      Alphabet.count( freq, @mapping ); end

#unaccent(name) ⇒ Object



47
# File 'lib/alphabets/utils.rb', line 47

def unaccent( name )   Alphabet.sub( name, @mapping );   end