diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-06-04 15:06:32 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-06-04 15:06:32 -0500 |
commit | 5fe28789731fd521d5a250ac7be21da45dae147d (patch) | |
tree | 52d11356d414a6d7cdf830467c7f71cc00d43b1f /activesupport/lib/active_support/string_inquirer.rb | |
parent | 6e85f14817cddb53875e572770bf3739f82e155f (diff) | |
download | rails-5fe28789731fd521d5a250ac7be21da45dae147d.tar.gz rails-5fe28789731fd521d5a250ac7be21da45dae147d.tar.bz2 rails-5fe28789731fd521d5a250ac7be21da45dae147d.zip |
Renamed StringQuestioneer to StringInquirer.
Diffstat (limited to 'activesupport/lib/active_support/string_inquirer.rb')
-rw-r--r-- | activesupport/lib/active_support/string_inquirer.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |