diff options
author | Alexey Gaziev <alex.gaziev@gmail.com> | 2012-04-29 01:13:04 +0400 |
---|---|---|
committer | Alexey Gaziev <alex.gaziev@gmail.com> | 2012-04-29 03:12:07 +0400 |
commit | 432a65fab2a6c7eb6ff77062e73f7627470f7da7 (patch) | |
tree | eb4bffc76ae1d5a6fba081d34f57680e4df8ecaa /activesupport/lib/active_support/core_ext/range | |
parent | f1220516fba3add0f3b491a440fd6525fdb61587 (diff) | |
download | rails-432a65fab2a6c7eb6ff77062e73f7627470f7da7.tar.gz rails-432a65fab2a6c7eb6ff77062e73f7627470f7da7.tar.bz2 rails-432a65fab2a6c7eb6ff77062e73f7627470f7da7.zip |
String quotes and trailing spaces
Diffstat (limited to 'activesupport/lib/active_support/core_ext/range')
-rw-r--r-- | activesupport/lib/active_support/core_ext/range/include_range.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/range/include_range.rb b/activesupport/lib/active_support/core_ext/range/include_range.rb index 684b7cbc4a..3af66aaf2f 100644 --- a/activesupport/lib/active_support/core_ext/range/include_range.rb +++ b/activesupport/lib/active_support/core_ext/range/include_range.rb @@ -5,7 +5,7 @@ class Range # (1..5).include?(2..6) # => false # # The native Range#include? behavior is untouched. - # ("a".."f").include?("c") # => true + # ('a'..'f').include?('c') # => true # (5..9).include?(11) # => false def include_with_range?(value) if value.is_a?(::Range) |