Sha256: 1fbedb042adf981d31edccc31c4cdc6e19ba28fd29c28159575a91f4f5bcc094

Contents?: true

Size: 675 Bytes

Versions: 4

Compression:

Stored size: 675 Bytes

Contents

# encoding: utf-8

module Unparser
  class Emitter
    # Emitter for splats
    class KwSplat < self

      handle :kwsplat

      children :subject

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(T_SPLAT, T_SPLAT)
        visit(subject)
      end
    end

    # Emitter for splats
    class Splat < self

      handle :splat

      children :subject

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(T_SPLAT)
        visit(subject) if subject
      end
    end
  end
end # Unparser

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unparser-0.1.15 lib/unparser/emitter/splat.rb
unparser-0.1.14 lib/unparser/emitter/splat.rb
unparser-0.1.13 lib/unparser/emitter/splat.rb
unparser-0.1.12 lib/unparser/emitter/splat.rb