X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Fstring_inquirer.rb;fp=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Fstring_inquirer.rb;h=0000000000000000000000000000000000000000;hb=36d9f3351a3b4e8159279445190e2287ffdea86c;hp=e6b1f392251d726efce7fc4b19ef9fb4aca36d81;hpb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;p=feedcatcher.git diff --git a/vendor/rails/activesupport/lib/active_support/string_inquirer.rb b/vendor/rails/activesupport/lib/active_support/string_inquirer.rb deleted file mode 100644 index e6b1f39..0000000 --- a/vendor/rails/activesupport/lib/active_support/string_inquirer.rb +++ /dev/null @@ -1,21 +0,0 @@ -module ActiveSupport - # Wrapping a string in this class gives you a prettier way to test - # for equality. The value returned by Rails.env is wrapped - # in a StringInquirer object so instead of calling this: - # - # Rails.env == "production" - # - # you can call this: - # - # Rails.env.production? - # - class StringInquirer < String - def method_missing(method_name, *arguments) - if method_name.to_s[-1,1] == "?" - self == method_name.to_s[0..-2] - else - super - end - end - end -end