Introducing Rubyfmt

C727e695ffdc7bf95f9f1a97da592648?s=47 Penelope Phippen
November 19, 2019
240

Introducing Rubyfmt

C727e695ffdc7bf95f9f1a97da592648?s=128

Penelope Phippen

November 19, 2019
Tweet

Transcript

  1. 66.

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

    receiver = NULL method = <U a> args = [ ] }
  2. 67.

    @penelope_zone $ srb tc -p parse-tree -e ‘a(1)’ Send {

    receiver = NULL method = <U a> args = [ Integer { val = "1" } ] }
  3. 78.

    @penelope_zone $ rr 'a' [:program, [[:method_add_arg, [:fcall, [:@ident, "a", [1,

    0]]], [:arg_paren, [:args_add_block, [[:@int, "1", [1, 2]]], false]]]]]
  4. 82.

    @penelope_zone I may end up separating Ripper from the Ruby

    interpreter as a general purpose tool
  5. 101.
  6. 103.

    @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
  7. 117.