Class: ANSEL::Iconv

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

Instance Method Summary collapse

Constructor Details

#initialize(to, from = 'ANSEL') ⇒ Iconv

Returns a new instance of Iconv.



11
12
13
# File 'lib/ansel_iconv.rb', line 11

def initialize(to, from = 'ANSEL')
  @converter = (from == 'ANSEL') ? Convert.new(to) : ::Iconv.new(to, from)
end