[ruby-cvs:65248] nobu:r58077 (trunk): ostruct.rb: fix OpenStruct.allocate

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Mar 24 21:16:54 JST 2017


nobu	2017-03-24 21:16:54 +0900 (Fri, 24 Mar 2017)

  New Revision: 58077

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58077

  Log:
    ostruct.rb: fix OpenStruct.allocate
    
    * lib/ostruct.rb (OpenStruct.allocate): initialize an instance
      variable directly, without calling `intialize` method which may
      be overridden in a subclass.  [ruby-core:80292] [Bug #13358]

  Modified files:
    trunk/lib/ostruct.rb
    trunk/test/ostruct/test_ostruct.rb


More information about the ruby-cvs mailing list