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 | 23beb1a9dd6654262d17d9dde4f8566d8c4277cc (patch) | |
tree | b9d30cbac1ef81ceb1a8cdf22907f59995075357 /ext/iconv | |
parent | 390ae31a6f03330dcb5f91dde03e70382a679b2b (diff) |
* ext/iconv/iconv.c: fixed document, Iconv#new is no longer an
iterator. thanks to Tanaka Akira <akr@m17n.org>.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 74d9a5d9f7..bf1528d21a 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 |