Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/pseudohiki/shim.rb
Instance Method Summary collapse
Instance Method Details
#encode(to, from = choose_input_encoding_using_kcode) ⇒ Object
23 24 25 26 27 |
# File 'lib/pseudohiki/shim.rb', line 23 def encode(to, from=choose_input_encoding_using_kcode) iconv = Iconv.new(to, from) str = iconv.iconv(self) str << iconv.iconv(nil) end |