Sha256: 905cf3f222cf632554c3d20de4f40b6338ddfa145da2801650715eb1a2afbd87

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

module ToSource
  class Emitter
    # Emitter for class module or singleton class scopes
    class Scope < self

      handle(Rubinius::AST::ClassScope)
      handle(Rubinius::AST::ModuleScope)
      handle(Rubinius::AST::SClassScope)

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        visit(node.body)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
to_source-0.2.20 lib/to_source/emitter/scope.rb
to_source-0.2.19 lib/to_source/emitter/scope.rb
to_source-0.2.18 lib/to_source/emitter/scope.rb
to_source-0.2.17 lib/to_source/emitter/scope.rb
to_source-0.2.16 lib/to_source/emitter/scope.rb