Permalink
Browse files

Added parenthesis to avoid warning messages.

/Users/doktahworm/.rvm/gems/ruby-1.8.7-p174/gems/mail-2.3.0/lib/mail/multibyte/chars.rb:342: warning: parenthesize argument(s) for future version
/Users/doktahworm/.rvm/gems/ruby-1.8.7-p174/gems/mail-2.3.0/lib/mail/multibyte/chars.rb:350: warning: parenthesize argument(s) for future version
  • Loading branch information...
1 parent cfd3dca commit 3deb69264ad676a6110a6b7ed6195040db4fe684 @DoktahWorm DoktahWorm committed May 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mail/multibyte/chars.rb
@@ -339,15 +339,15 @@ def limit(limit)
# Example:
# 'Laurent, où sont les tests ?'.mb_chars.upcase.to_s # => "LAURENT, OÙ SONT LES TESTS ?"
def upcase
- chars(Unicode.apply_mapping @wrapped_string, :uppercase_mapping)
+ chars(Unicode.apply_mapping(@wrapped_string), :uppercase_mapping)
end
# Convert characters in the string to lowercase.
#
# Example:
# 'VĚDA A VÝZKUM'.mb_chars.downcase.to_s # => "věda a výzkum"
def downcase
- chars(Unicode.apply_mapping @wrapped_string, :lowercase_mapping)
+ chars(Unicode.apply_mapping(@wrapped_string), :lowercase_mapping)
end
# Converts the first character to uppercase and the remainder to lowercase.

0 comments on commit 3deb692

Please sign in to comment.