lib/to_source/visitor.rb in to_source-0.1.1 vs lib/to_source/visitor.rb in to_source-0.1.2

- old
+ new

@@ -220,9 +220,14 @@ node.left.lazy_visit self, node emit ' || ' node.right.lazy_visit self, node end + def toplevel_constant(node, parent) + emit "::" + emit node.name + end + def constant_access(node, parent) emit node.name end def scoped_constant(node, parent)