Class: Ole::Types::Iconv

Inherits:
Object
  • Object
show all
Defined in:
lib/ole/types/base.rb

Overview

NOTE: only here in the interim to preserve behaviour of FROM/TO_UTF16 constants for ruby-msg.

Instance Method Summary collapse

Constructor Details

#initialize(to, from) ⇒ Iconv

:nodoc:



43
44
45
# File 'lib/ole/types/base.rb', line 43

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

Instance Method Details

#iconv(str) ⇒ Object



47
48
49
# File 'lib/ole/types/base.rb', line 47

def iconv(str)
	str.encode(@to, @from)
end