summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-22 11:21:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-22 11:21:34 +0000
commitfb38cfb90fcd467e398cbfc13aa99cf38c569311 (patch)
tree2c65bcb7deb45770abe7867b015d39b9461311c7 /sample
parent05ee7f2fdbb63ba33aaf5abb814b6166277b5060 (diff)
Update trick2013/yhara for Ruby 2.4
I need to raise LocalJumpError here (for the first "J" of the output "JUST ANOTHER RUBY HACKER"), but this `return` does not raise error in Ruby 2.4. [Fix GH-1703] Author: Yutaka HARA <yutaka.hara+github@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/trick2013/yhara/entry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/trick2013/yhara/entry.rb b/sample/trick2013/yhara/entry.rb
index a2deb54399..ce125ed3df 100644
--- a/sample/trick2013/yhara/entry.rb
+++ b/sample/trick2013/yhara/entry.rb
@@ -2,7 +2,7 @@ def _(&b)$><<->(x){x ? (String===x ?x.upcase:
(Class===x ? x : x.class).name[$a?0:($a=5)]):
" "}[ begin b[];rescue Exception;$!;end ] end
-_ { return }
+_ { yield }
_ { method(:p).unbind }
_ { eval "{ " }
_ { Thread.current.join }