txus/to_source

View on GitHub
lib/to_source/emitter/scoped_name.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ToSource
  class Emitter
    class ScopedName < self

      handle(Rubinius::AST::ScopedClassName)
      handle(Rubinius::AST::ScopedModuleName)
      handle(Rubinius::AST::ScopedConstant)

      def dispatch
        visit(node.parent)
        emit('::')
        emit(node.name)
      end

    end
  end
end