From 23beb1a9dd6654262d17d9dde4f8566d8c4277cc Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 15 Mar 2002 05:05:34 +0000 Subject: * ext/iconv/iconv.c: fixed document, Iconv#new is no longer an iterator. thanks to Tanaka Akira . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/iconv/iconv.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ext/iconv/iconv.c') 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 (()). :((|strs|)) strings to be converted. :Exceptions - exceptions thrown by (()) and (()). + exceptions thrown by (()), (()) and + (()). =end */ @@ -723,8 +724,8 @@ Init_iconv _((void)) ensure cd.close end -(2) Invoke (()) with a block. - Iconv.new(to, from) do |cd| +(2) Invoke (()) with a block. + Iconv.open(to, from) do |cd| input.each {|s| output << cd.iconv(s)} output << cd.iconv(nil) end -- cgit v1.2.3