Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introducing Rubyfmt

Penelope Phippen
November 19, 2019
520

Introducing Rubyfmt

Penelope Phippen

November 19, 2019
Tweet

Transcript

  1. @penelope_zone $ srb tc -p parse-tree -e 'a' Send {

    receiver = NULL method = <U a> args = [ ] }
  2. @penelope_zone $ srb tc -p parse-tree -e ‘a(1)’ Send {

    receiver = NULL method = <U a> args = [ Integer { val = "1" } ] }
  3. @penelope_zone $ rr 'a' [:program, [[:method_add_arg, [:fcall, [:@ident, "a", [1,

    0]]], [:arg_paren, [:args_add_block, [[:@int, "1", [1, 2]]], false]]]]]
  4. @penelope_zone I may end up separating Ripper from the Ruby

    interpreter as a general purpose tool
  5. @penelope_zone bundle exec rubocop <4 line file> 800ms 100m 100m

    100m 100m 100m 100m 100m 100m Bundler boot Rubocop 100 100 100 100 100 100 100 100