Class: Configy::StringInquirer
- Inherits:
-
String
- Object
- String
- Configy::StringInquirer
- Defined in:
- lib/configy/string_inquirer.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &blk) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/configy/string_inquirer.rb', line 4 def method_missing( method, *args, &blk ) if method.to_s[ -1 ] == '?' self == method.to_s[ 0..-2 ] else super end end |