Class: ActiveSupport::StringInquirer
- Defined in:
- lib/active_support/string_inquirer.rb
Instance Method Summary collapse
Methods inherited from String
#blank?, #crc32_ITU_T, #to_json, #to_xs
Methods included from CoreExtensions::String::Unicode
append_features, #chars, #is_utf8?
Methods included from CoreExtensions::String::Iterators
Methods included from CoreExtensions::String::StartsEndsWith
append_features, #ends_with?, #starts_with?
Methods included from CoreExtensions::String::Inflections
#camelize, #classify, #constantize, #dasherize, #demodulize, #foreign_key, #humanize, #pluralize, #singularize, #tableize, #titleize, #underscore
Methods included from CoreExtensions::String::Filters
Methods included from CoreExtensions::String::Conversions
#ord, #to_date, #to_datetime, #to_time
Methods included from CoreExtensions::String::Access
#at, #first, #from, #last, #to
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/active_support/string_inquirer.rb', line 3 def method_missing(method_name, *arguments) if method_name.to_s.ends_with?("?") self == method_name.to_s[0..-2] else super end end |