instance method
method_missing
Ruby on Rails 8.1.2
Since v2.2.3Signature
method_missing(method, ...)
Forward all undefined methods to the wrapped string.
Parameters
-
methodreq -
...req
Source
# File activesupport/lib/active_support/multibyte/chars.rb, line 72
def method_missing(method, ...)
result = @wrapped_string.__send__(method, ...)
if method.end_with?("!")
self if result
else
result.kind_of?(String) ? chars(result) : result
end
end
Defined in activesupport/lib/active_support/multibyte/chars.rb line 72
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Multibyte::Chars