diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 05:01:30 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 05:01:30 +0000 |
commit | 60dde833c3b4d751ecc1f88c6098466e275dd837 (patch) | |
tree | 67d095d8ca1d8f78e0191a8d02369504a8d89ef0 /NEWS | |
parent | 9fb81662b52391aa7e4b44f529b6b2c717a81d15 (diff) |
* string.c (rb_str_each_char): New methods: String#chars and
#each_char.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -75,6 +75,8 @@ with all sufficient information, see the ChangeLog file. * Regexp.union accepts an array of patterns. + * String#chars + * String#each_char * String#partition * String#rpartition * String#start_with? @@ -83,6 +85,12 @@ with all sufficient information, see the ChangeLog file. New methods. These are $KCODE aware unlike #index, #rindex and #include?. + * String#each_byte + * String#each + * String#each_lines + + Return an enumerator if no block is given. + * StopIteration New exception class that causes Kernel#loop to stop iteration when |