Class: Rack::Utils::StringInquirer
- Inherits:
-
String
- Object
- String
- Rack::Utils::StringInquirer
- Defined in:
- lib/rackables/more/env_inquirer.rb
Overview
TAKEN FROM ACTIVE SUPPORT
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/rackables/more/env_inquirer.rb', line 19 def method_missing(method_name, *arguments) if method_name.to_s[-1,1] == "?" self == method_name.to_s[0..-2] else super end end |