module DissociatedIntrospection class RubyClass class Def def initialize(ruby_code) @ruby_code = ruby_code end def name ruby_code.ast.children[0] end def arguments Unparser.unparse(ruby_code.ast.children[1]) end def body Unparser.unparse(ruby_code.ast.children[2]) end def source ruby_code.source end private attr_reader :ruby_code end end end