diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-15 05:05:34 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-15 05:05:34 +0000 |
| commit | f1fcd4fcc618ec9f42f4aaa8960843eefac108c0 (patch) | |
| tree | b9d30cbac1ef81ceb1a8cdf22907f59995075357 /ext/iconv | |
| parent | a84f0fecd484f88f0f3cb19c2731f631fdf0b490 (diff) | |
| download | ruby-f1fcd4fcc618ec9f42f4aaa8960843eefac108c0.tar.gz ruby-f1fcd4fcc618ec9f42f4aaa8960843eefac108c0.tar.xz ruby-f1fcd4fcc618ec9f42f4aaa8960843eefac108c0.zip | |
* ext/iconv/iconv.c: fixed document, Iconv#new is no longer an
iterator. thanks to Tanaka Akira <akr@m17n.org>.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/iconv')
| -rw-r--r-- | ext/iconv/iconv.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 74d9a5d9f..bf1528d21 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -418,14 +418,15 @@ iconv_s_open =begin --- Iconv.iconv(to, from, *strs) Shorthand for - Iconv.new(to, from) {|cd| (strs + nil).collect {|s| cd.iconv(s)}} + Iconv.open(to, from) {|cd| (strs + nil).collect {|s| cd.iconv(s)}} :Parameters :((|to|)), ((|from|)) see ((<Iconv.new>)). :((|strs|)) strings to be converted. :Exceptions - exceptions thrown by ((<Iconv.new>)) and ((<Iconv#iconv>)). + exceptions thrown by ((<Iconv.new>)), ((<Iconv.open>)) and + ((<Iconv#iconv>)). =end */ @@ -723,8 +724,8 @@ Init_iconv _((void)) ensure cd.close end -(2) Invoke ((<Iconv.new>)) with a block. - Iconv.new(to, from) do |cd| +(2) Invoke ((<Iconv.open>)) with a block. + Iconv.open(to, from) do |cd| input.each {|s| output << cd.iconv(s)} output << cd.iconv(nil) end |
