Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use FrozenError in OpenStruct #1808

Closed
wants to merge 1 commit into from

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Feb 2, 2018

In other classes, FrozenError will be raised if change the frozen object.
In order to match the behavior, I think that FrozenError should use in OpenStruct.

In other classes, `FrozenError` will be raised if change the frozen
object.
In order to match the behavior, I think that `FrozenError` should
use in `OpenStruct`.
@marcandre
Copy link
Member

Good catch 👍

Merged, thanks!

@marcandre marcandre closed this Feb 6, 2018
matzbot pushed a commit that referenced this pull request Feb 6, 2018
Patch by Yuuji Yaginuma. [Fixes GH-1808]

In other classes, `FrozenError` will be raised if change the frozen
object.
In order to match the behavior, I think that `FrozenError` should
use in `OpenStruct`.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
@y-yagi
Copy link
Contributor Author

y-yagi commented Feb 7, 2018

Thanks!

@y-yagi y-yagi deleted the use_frozen_error_in_ostruct branch February 7, 2018 00:59
tenderlove pushed a commit to github/ruby that referenced this pull request Feb 13, 2018
Patch by Yuuji Yaginuma. [Fixes rubyGH-1808]

In other classes, `FrozenError` will be raised if change the frozen
object.
In order to match the behavior, I think that `FrozenError` should
use in `OpenStruct`.

Co-authored-by: Aaron Patterson <aaron.patterson@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlove pushed a commit to github/ruby that referenced this pull request Feb 13, 2018
Patch by Yuuji Yaginuma. [Fixes rubyGH-1808]

In other classes, `FrozenError` will be raised if change the frozen
object.
In order to match the behavior, I think that `FrozenError` should
use in `OpenStruct`.

Co-authored-by: Foo Bar <foobar@example.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlove pushed a commit to github/ruby that referenced this pull request Feb 13, 2018
Patch by Yuuji Yaginuma. [Fixes rubyGH-1808]

In other classes, `FrozenError` will be raised if change the frozen
object.
In order to match the behavior, I think that `FrozenError` should
use in `OpenStruct`.

Co-authored-by: Foo Bar <foobar@example.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants