Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> module Foo
- >> def bar(baz)
- >> end
- >> end
- => nil
- >> class Bar
- >> include Foo
- >> end
- => Bar
- >> require "parse_tree"
- => true
- >> ParseTree.translate(Bar)
- => [:class, :Bar, [:const, :Object], [:defn, :bar, [:scope, [:block, [:args, :baz], [:nil]]]]]
Add Comment
Please, Sign In to add comment