aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object/inclusion.rb
diff options
context:
space:
mode:
authorAlexey Gaziev <alex.gaziev@gmail.com>2012-04-26 17:20:36 +0400
committerAlexey Gaziev <alex.gaziev@gmail.com>2012-04-29 03:09:44 +0400
commit1946d7b9229fabb52226f9ff82de72872c748d90 (patch)
tree9d45b28547accec3c53d177fd0a6b727afb1be18 /activesupport/lib/active_support/core_ext/object/inclusion.rb
parent242f4d1ebadd0cff83c10270aecd56752b9befc5 (diff)
downloadrails-1946d7b9229fabb52226f9ff82de72872c748d90.tar.gz
rails-1946d7b9229fabb52226f9ff82de72872c748d90.tar.bz2
rails-1946d7b9229fabb52226f9ff82de72872c748d90.zip
AS core_ext refactoring
Diffstat (limited to 'activesupport/lib/active_support/core_ext/object/inclusion.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/object/inclusion.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/inclusion.rb b/activesupport/lib/active_support/core_ext/object/inclusion.rb
index f611cdd606..dab808aa55 100644
--- a/activesupport/lib/active_support/core_ext/object/inclusion.rb
+++ b/activesupport/lib/active_support/core_ext/object/inclusion.rb
@@ -4,7 +4,7 @@ class Object
#
# characters = ["Konata", "Kagami", "Tsukasa"]
# "Konata".in?(characters) # => true
- #
+ #
# character = "Konata"
# character.in?("Konata", "Kagami", "Tsukasa") # => true
#
@@ -18,7 +18,7 @@ class Object
if another_object.respond_to? :include?
another_object.include? self
else
- raise ArgumentError.new("The single parameter passed to #in? must respond to #include?")
+ raise ArgumentError.new 'The single parameter passed to #in? must respond to #include?'
end
end
end