Slide 87
Slide 87 text
pry(main)> Ripper.lex('def alias(arg)')
=> [[[1, 0], :on_kw, "def"],
[[1, 3], :on_sp, " "],
[[1, 4], :on_kw, "alias"],
[[1, 9], :on_lparen, "("],
[[1, 10], :on_ident, “arg"],
[[1, 13], :on_rparen, ")"]]
pry(main)> Ripper.lex('def aliass(arg)')
=> [[[1, 0], :on_kw, "def"],
[[1, 3], :on_sp, " "],
[[1, 4], :on_ident, "aliass"],
[[1, 10], :on_lparen, "("],
[[1, 11], :on_ident, "arg"],
[[1, 14], :on_rparen, ")"]]