[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77562] [Ruby trunk Bug#4537][Assigned] Incorrectly creating private method via attr_accessor
From:
shyouhei@...
Date:
2016-10-11 08:40:43 UTC
List:
ruby-core #77562
Issue #4537 has been updated by Shyouhei Urabe. Status changed from Closed to Assigned Assignee changed from Nobuyoshi Nakada to Koichi Sasada ---------------------------------------- Bug #4537: Incorrectly creating private method via attr_accessor https://bugs.ruby-lang.org/issues/4537#change-60833 * Author: Ryan LeCompte * Status: Assigned * Priority: Normal * Assignee: Koichi Sasada * ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- # The following fails with a failure to call "x=" private method String.send(:attr_accessor, :x) s = "" s.x = 100 # The following works: class String self.send(:attr_accessor, :x) end s = "" s.x = 100 -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>