instance method
include?
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v3.2.22.5Signature
include?(other)
Returns true if contained string contains other. Returns false otherwise.
Example:
'Café'.mb_chars.include?('é') #=> true
Parameters
-
otherreq
Source
# File activesupport/lib/active_support/multibyte/chars.rb, line 188
def include?(other)
# We have to redefine this method because Enumerable defines it.
@wrapped_string.include?(other)
end
Defined in activesupport/lib/active_support/multibyte/chars.rb line 188
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Multibyte::Chars