Sha256: 2a91dfb0881457668e96dfd89fda554ae95cde935c642a69e6fe6140e1c22d85

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

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

      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
      include Terminated

      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.2.8 lib/unparser/emitter/splat.rb
unparser-0.2.7 lib/unparser/emitter/splat.rb
unparser-0.2.6 lib/unparser/emitter/splat.rb
unparser-0.2.5 lib/unparser/emitter/splat.rb