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