From d768f7415eab526a746fab07e04fe664ff31f231 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Tue, 22 Sep 2009 22:56:57 +0200 Subject: AS guide: details how a corner case behaves in different Ruby versions --- railties/guides/source/active_support_overview.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/guides/source') 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 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 h5. +to(position)+ -- cgit v1.2.3