summaryrefslogtreecommitdiff
path: root/lib/set.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-20 04:44:25 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-20 04:44:25 +0000
commitafd68cd87114fb49158462f1594cacfd2b765e9b (patch)
tree051904b0a82ecb823f7fbb615cf505771f37a8c1 /lib/set.rb
parent27f51081d3b0a4bfb94df1153c005c9bc2c748ba (diff)
raise FrozenError instead of RuntimeError
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/set.rb b/lib/set.rb
index e639636..921f18f 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -527,7 +527,7 @@ class Set
if @hash.respond_to?(:rehash)
@hash.rehash # This should perform frozenness check.
else
- raise "can't modify frozen #{self.class.name}" if frozen?
+ raise FrozenError, "can't modify frozen #{self.class.name}" if frozen?
end
self
end