Guest User

Untitled

a guest
Apr 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. >> module Foo
  2. >> def bar(baz)
  3. >> end
  4. >> end
  5. => nil
  6. >> class Bar
  7. >> include Foo
  8. >> end
  9. => Bar
  10. >> require "parse_tree"
  11. => true
  12. >> ParseTree.translate(Bar)
  13. => [:class, :Bar, [:const, :Object], [:defn, :bar, [:scope, [:block, [:args, :baz], [:nil]]]]]
Add Comment
Please, Sign In to add comment