Class: EideticPDF::FakeIconv

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

Instance Method Summary collapse

Constructor Details

#initialize(to, from) ⇒ FakeIconv

Returns a new instance of FakeIconv.



105
106
107
# File 'lib/epdfs.rb', line 105

def initialize(to, from)
  @to, @from = to, from
end

Instance Method Details

#closeObject



113
114
# File 'lib/epdfs.rb', line 113

def close
end

#iconv(text) ⇒ Object



109
110
111
# File 'lib/epdfs.rb', line 109

def iconv(text)
  text.encode(@to, @from, :invalid => :replace, :undef => :replace)
end