git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-10-23 16:34:14 +00:00
Родитель f9a169fff2
Коммит c7f60a0b23
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -2,10 +2,10 @@ Thu Oct 24 00:11:24 2013 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* lib/ostruct.rb: raise NoMethodError with a #name and #args.
Raise RuntimeError when modifying frozen instances
instead of TypeError.
(OpenStruct#each_pair): Return an enumerator with size
instead of TypeError.
(OpenStruct#each_pair): Return an enumerator with size
(OpenStruct#delete): Use the converted argument.
Patches by Kenichi Kamiya. [Fixes GH-383]
Patches by Kenichi Kamiya. [Fixes GH-383]
* test/ostruct/test_ostruct.rb: Added tests for above.