summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-catch/mrblib/catch.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2021-02-12 19:09:18 +0900
committerKOBAYASHI Shuji <[email protected]>2021-02-12 19:09:18 +0900
commit955464ca3cf408a14ae98b1e93afe31023219af9 (patch)
treebf41f788682eb6981b5bdc397eee5e1a12a0bc01 /mrbgems/mruby-catch/mrblib/catch.rb
parent2af8e16cc64243503352d02ed62f033e636921da (diff)
downloadmruby-955464ca3cf408a14ae98b1e93afe31023219af9.tar.gz
mruby-955464ca3cf408a14ae98b1e93afe31023219af9.zip
Add `UncaughtThrowError#{tag,value}` for Ruby compatibility
Diffstat (limited to 'mrbgems/mruby-catch/mrblib/catch.rb')
-rw-r--r--mrbgems/mruby-catch/mrblib/catch.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/mrbgems/mruby-catch/mrblib/catch.rb b/mrbgems/mruby-catch/mrblib/catch.rb
index 8e5f59023..9a60a67a3 100644
--- a/mrbgems/mruby-catch/mrblib/catch.rb
+++ b/mrbgems/mruby-catch/mrblib/catch.rb
@@ -1,8 +1,8 @@
class UncaughtThrowError < ArgumentError
- attr_reader :_tag, :_val
- def initialize(tag, val)
- @_tag = tag
- @_val = val
+ attr_reader :tag, :value
+ def initialize(tag, value)
+ @tag = tag
+ @value = value
super("uncaught throw #{tag.inspect}")
end
end