aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-08-23 00:53:32 +0200
committerXavier Noria <fxn@hashref.com>2009-08-23 00:53:32 +0200
commitdb41df2cd1a1165c6071aa5c8ca1f8ea0c744a23 (patch)
treeb2ce874874521c8a5b0dadc02eaa57a2ff1f8483 /railties
parentfa210686fd8e650fc09fb0f56d3c805630b9a14d (diff)
downloadrails-db41df2cd1a1165c6071aa5c8ca1f8ea0c744a23.tar.gz
rails-db41df2cd1a1165c6071aa5c8ca1f8ea0c744a23.tar.bz2
rails-db41df2cd1a1165c6071aa5c8ca1f8ea0c744a23.zip
AS guide: documents String#bytesize
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/active_support_overview.textile4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile
index a4e2534e2d..65ec023876 100644
--- a/railties/guides/source/active_support_overview.textile
+++ b/railties/guides/source/active_support_overview.textile
@@ -678,7 +678,9 @@ Symbols from Ruby 1.8.7 on respond to +to_proc+, and Active Support defines it f
h3. Extensions to +String+
-...
+h4. +bytesize+
+
+Ruby 1.9 introduces +String#bytesize+ to obtain the length of a string in bytes. Ruby 1.8.7 defines this method as an alias for +String#size+ for forward compatibility, and Active Support does so for previous versions.
h3. Extensions to +Numeric+