Slide 70
Slide 70 text
142
palkan_tula
palkan RubyConf 2019
$ ruby -r ripper -e "pp Ripper.sexp(File.read('beach.rb'))"
[:program,
[[:def,
[:@ident, "beach", [1, 4]],
[:paren,
[:params,
[:rest_param, [:@ident, "temperature", [1, 11]]],
],
[:bodystmt,
[[:case,
[:var_ref, [:@ident, "temperature", [2, 7]]],
[:in,
[:aryptn,
nil,
[[:binary,
[:symbol_literal, [:symbol, [:@ident, "celcius", [3, 6]]]],
70