This project is archived and is in readonly mode.

#140 ✓duplicate
jdwyah

Chars class doesn't proxy "include?"

Reported by jdwyah | May 7th, 2008 @ 11:17 PM

The docs state that "Chars objects are perfectly interchangeable with String objects as long as no explicit class checks are made."

However at least one String method does not work on Chars objects:

>>"foo".chars.include?("f")

ArgumentError: wrong number of arguments (2 for 1)

from /Library/Ruby/Gems/1.8/gems/activesupport-1.4.4/lib/active_support/multibyte/chars.rb:81:in `include?'

from /Library/Ruby/Gems/1.8/gems/activesupport-1.4.4/lib/active_support/multibyte/chars.rb:81:in `send'

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages