aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-11-09 23:31:10 +0100
committerXavier Noria <fxn@hashref.com>2009-11-09 23:31:10 +0100
commit171e0adabb8ad322ea7dec16aba491266363dde8 (patch)
tree52ecc8faa3ee4cc7c78486a2dc2913f3258d9945 /railties/guides
parentdcff121c0940d781da871a6bf9244dd1a0eeb43e (diff)
downloadrails-171e0adabb8ad322ea7dec16aba491266363dde8.tar.gz
rails-171e0adabb8ad322ea7dec16aba491266363dde8.tar.bz2
rails-171e0adabb8ad322ea7dec16aba491266363dde8.zip
AS guide: removes docs for each_char, no longer in AS
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/active_support_core_extensions.textile8
1 files changed, 0 insertions, 8 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile
index 14b60cdd2e..2dad970220 100644
--- a/railties/guides/source/active_support_core_extensions.textile
+++ b/railties/guides/source/active_support_core_extensions.textile
@@ -730,14 +730,6 @@ in case you feel more comfortable spelling them that way.
WARNING. Active Support invokes +to_s+ on the argument, but Ruby does not. Since Active Support defines these methods only if strings do not respond to them, this corner of their behaviour depends on the interpreter that runs a given Rails application. You change the interpreter, and +start_with?(1)+ may change its return value. In consequence, it's more portable not to rely on that and pass always strings.
-h4. +each_char+
-
-Ruby 1.8.7 and up define the iterator +String#each_char+ that understands UTF8 and yields strings with a single character each, so they have length 1 but may be multibyte. Active Support defines that method for previous versions of Ruby:
-
-<ruby>
-"\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E".each_char {|c| print c} # => 日本語
-</ruby>
-
h4. Access
h5. +at(position)+