From 5fe28789731fd521d5a250ac7be21da45dae147d Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 4 Jun 2008 15:06:32 -0500 Subject: Renamed StringQuestioneer to StringInquirer. --- activesupport/lib/active_support/string_inquirer.rb | 11 +++++++++++ activesupport/lib/active_support/string_questioneer.rb | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 activesupport/lib/active_support/string_inquirer.rb delete mode 100644 activesupport/lib/active_support/string_questioneer.rb (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/string_inquirer.rb b/activesupport/lib/active_support/string_inquirer.rb new file mode 100644 index 0000000000..65545748df --- /dev/null +++ b/activesupport/lib/active_support/string_inquirer.rb @@ -0,0 +1,11 @@ +module ActiveSupport + class StringInquirer < 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 diff --git a/activesupport/lib/active_support/string_questioneer.rb b/activesupport/lib/active_support/string_questioneer.rb deleted file mode 100644 index 666f3c6018..0000000000 --- a/activesupport/lib/active_support/string_questioneer.rb +++ /dev/null @@ -1,11 +0,0 @@ -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 -- cgit v1.2.3