From 6e85f14817cddb53875e572770bf3739f82e155f Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 4 Jun 2008 15:02:51 -0500 Subject: Namespaced StringQuestioneer under ActiveSupport. --- activesupport/lib/active_support/string_questioneer.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/string_questioneer.rb b/activesupport/lib/active_support/string_questioneer.rb index 7732f8b401..666f3c6018 100644 --- a/activesupport/lib/active_support/string_questioneer.rb +++ b/activesupport/lib/active_support/string_questioneer.rb @@ -1,9 +1,11 @@ -class StringQuestioneer < String - def method_missing(method_name, *arguments) - if method_name.to_s.ends_with?("?") - self == method_name.to_s[0..-2] - else - super +module ActiveSupport + class StringQuestioneer < String + def method_missing(method_name, *arguments) + if method_name.to_s.ends_with?("?") + self == method_name.to_s[0..-2] + else + super + end end end -end \ No newline at end of file +end -- cgit v1.2.3