instance method
reverse
Ruby on Rails 2.2.3
Since v2.2.3Signature
reverse()
Reverses all characters in the string.
Example:
'Café'.mb_chars.reverse.to_s #=> 'éfaC'
Source
# File activesupport/lib/active_support/multibyte/chars.rb, line 307
def reverse
chars(self.class.u_unpack(@wrapped_string).reverse.pack('U*'))
end
Defined in activesupport/lib/active_support/multibyte/chars.rb line 307
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Multibyte::Chars