Class: ANSEL::Iconv

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Iconv.



7
8
9
# File 'lib/ansel_iconv/iconv.rb', line 7

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