Sha256: 2db26913ab31d45c407640bc3e112dc327a024ac848713265554b13e82cefacb

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

module ToSource
  class Emitter
    # Emitter for nth global variable reference
    class NthRef < self

      handle(Rubinius::AST::NthRef)

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        emit("$#{node.which}")
      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/nth_ref.rb
to_source-0.2.19 lib/to_source/emitter/nth_ref.rb
to_source-0.2.18 lib/to_source/emitter/nth_ref.rb
to_source-0.2.17 lib/to_source/emitter/nth_ref.rb
to_source-0.2.16 lib/to_source/emitter/nth_ref.rb