candy icon indicating copy to clipboard operation
candy copied to clipboard

Query methods overridden by common class method names

Open SFEley opened this issue 15 years ago • 1 comments

ruby-1.9.1-p378 > c = Person.name('Bob Smith')
ArgumentError: wrong number of arguments(1 for 0)
from (irb):5:in `name'
from (irb):5
from /Volumes/seley01/Users/steve/.rvm/rubies/ruby-1.9.1-p378/bin/irb:17:in `<main>'

SFEley avatar May 05 '10 17:05 SFEley

This hit me twice in a row. User.name("foo") - nope. User.username("foo") - not that either.

kornysietsma avatar Nov 11 '10 10:11 kornysietsma