aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-09-22 22:56:57 +0200
committerXavier Noria <fxn@hashref.com>2009-09-22 23:09:30 +0200
commitd768f7415eab526a746fab07e04fe664ff31f231 (patch)
tree26a0b4fcce282b28c77581881efa32373125651d /railties/guides/source
parent6aa959e7fc6fd26201e57ff7f498edaf323cb014 (diff)
downloadrails-d768f7415eab526a746fab07e04fe664ff31f231.tar.gz
rails-d768f7415eab526a746fab07e04fe664ff31f231.tar.bz2
rails-d768f7415eab526a746fab07e04fe664ff31f231.zip
AS guide: details how a corner case behaves in different Ruby versions
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/active_support_overview.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile
index 70aeddf226..b847e3b742 100644
--- a/railties/guides/source/active_support_overview.textile
+++ b/railties/guides/source/active_support_overview.textile
@@ -747,7 +747,7 @@ Returns the character of the string at position +position+:
"hello".at(0) # => "h"
"hello".at(4) # => "o"
"hello".at(-1) # => "o"
-"hello".at(10) # => ERROR
+"hello".at(10) # => ERROR if < 1.9, nil in 1.9
</ruby>
h5. +from(position)+
@@ -758,7 +758,7 @@ Returns the substring of the string starting at position +position+:
"hello".from(0) # => "hello"
"hello".from(2) # => "llo"
"hello".from(-2) # => "lo"
-"hello".from(10) # => ""
+"hello".from(10) # => "" if < 1.9, nil in 1.9
</ruby>
h5. +to(position)+