[ruby-cvs:50544] marcandre:r43402 (trunk): * lib/ostruct.rb: Raise RuntimeError when modifying frozen instances

marcandre at ruby-lang.org marcandre at ruby-lang.org
Thu Oct 24 00:13:20 JST 2013


marcandre	2013-10-24 00:13:19 +0900 (Thu, 24 Oct 2013)

  New Revision: 43402

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43402

  Log:
    * lib/ostruct.rb: Raise RuntimeError when modifying frozen instances
      instead of TypeError. Patch by Kenichi Kamiya. [Fixes GH-383]
    
    * test/ostruct/test_ostruct.rb: Added tests for above.

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


More information about the ruby-cvs mailing list