Class: EideticPDF::FakeIconv
- Inherits:
-
Object
- Object
- EideticPDF::FakeIconv
- Defined in:
- lib/epdfs.rb
Instance Method Summary collapse
- #close ⇒ Object
- #iconv(text) ⇒ Object
-
#initialize(to, from) ⇒ FakeIconv
constructor
A new instance of FakeIconv.
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
#close ⇒ Object
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 |