--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Creates new code converter from a coding-system designated with from to another one designated with to.
- !ruby/struct:SM::Flow::H
level: 3
text: Parameters
- !ruby/object:SM::Flow::LIST
contents:
- !ruby/struct:SM::Flow::LI
label: "+to+:"
body: encoding name for destination
- !ruby/struct:SM::Flow::LI
label: "+from+:"
body: encoding name for source
type: :NOTE
- !ruby/struct:SM::Flow::H
level: 3
text: Exceptions
- !ruby/object:SM::Flow::LIST
contents:
- !ruby/struct:SM::Flow::LI
label: "TypeError:"
body: if to or from aren't String
- !ruby/struct:SM::Flow::LI
label: "InvalidEncoding:"
body: if designated converter couldn't find out
- !ruby/struct:SM::Flow::LI
label: "SystemCallError:"
body: if iconv_open(3) fails
type: :NOTE
full_name: Iconv::new
is_singleton: true
name: new
params: " Iconv.new(to, from)\n"
visibility: public