Project

General

Profile

ActionsLike0

Bug #7773

closed

Calling send("attribute=", value) returns nil instead of value

Added by gaffneyc (Chris Gaffney) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
ruby -v:
2.0.0-rc1
Backport:
[ruby-core:51821]

Description

When calling an attribute writer created using either attr_accessor or attr_writer via send nil is returned from the send call instead of the new value.

I've attached a test case that is failing on current head (51794) and 2.0.0-rc1. I've done a git bisect and it looks like commit 37228 (db1e99cd) is the first offending commit.

I've been able to reproduce on OS X 10.8 and Ubuntu 12.04.


Files

send_test.rb (280 Bytes) send_test.rb gaffneyc (Chris Gaffney), 02/03/2013 05:41 PM

Updated by nobu (Nobuyoshi Nakada) about 12 years ago

  • Status changed from Open to Feedback

Updated by marcandre (Marc-Andre Lafortune) about 12 years ago

  • Category set to core
  • Status changed from Feedback to Open
  • Target version set to 2.0.0

Updated by mame (Yusuke Endoh) about 12 years ago

  • Status changed from Open to Assigned
  • Assignee set to nobu (Nobuyoshi Nakada)
#5

Updated by marcandre (Marc-Andre Lafortune) about 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
ActionsLike0

Also available in: Atom PDF