The Cookpad booth event in RubyKaigi 2019
See also the main problems (Day-1, Day-2, and Day-3)!
extra-1.rb
: authored by @mameextra-2.rb
: authored by @mameextra-3.rb
: authored by @ko1
The Cookpad booth event in RubyKaigi 2019
See also the main problems (Day-1, Day-2, and Day-3)!
extra-1.rb
: authored by @mameextra-2.rb
: authored by @mameextra-3.rb
: authored by @ko1Hello = "Hello" | |
# Hint: Stop the recursion. | |
def Hello | |
Hello() + | |
" world" | |
end | |
puts Hello() |
s = "" | |
# Hint: https://techlife.cookpad.com/entry/2018/12/25/110240 | |
s == s.upcase or | |
s == s.downcase or puts "Hello world" |
def say | |
s = 'Small' | |
t = 'world' | |
puts "#{s} #{t}" | |
end | |
TracePoint.new(:line){|tp| | |
tp.binding.local_variable_set(:s, 'Hello') | |
tp.binding.local_variable_set(:t, 'Ruby') | |
tp.disable | |
}.enable(target: method(:say)) | |
say |