Issue #1983 has been updated by Jeremy Kemper.


Good point; struct is consistent with attr_*. Both use the same low-level check: (rb_is_local_id(id) || rb_is_const_id(id))

I'd like attr_reader :foo? to work too. It's a common convention for booleans. And for Struct, this is a nice way to stub out a duck-typed object.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1983

----------------------------------------
http://redmine.ruby-lang.org