Class: Charyf::StringInquirer
- Defined in:
- lib/charyf/support/string_inquirer.rb
Method Summary
Methods inherited from String
#camelize, #constantize, #deconstantize, #demodulize, #ltrim, #rtrim, #squish, #squish!, #trim, #underscore
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments) ⇒ Object (private)
9 10 11 12 13 14 15 |
# File 'lib/charyf/support/string_inquirer.rb', line 9 def method_missing(method_name, *arguments) if method_name[-1] == "?" self == method_name[0..-2] else super end end |