Sha256: 4dc93244d242134f86362675b4595b1b6f466f635935d5a66a48309131df760d

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

# encoding: utf-8

module Unparser
  class Emitter

    # Emitter for yield node
    class Yield < self
      include Terminated

      handle :yield

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_YIELD)
        return if children.empty?
        parentheses do
          delimited(children)
        end
      end

    end # Yield

  end # Emitter
end # Unparser

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
unparser-0.2.4 lib/unparser/emitter/yield.rb
unparser-0.2.3 lib/unparser/emitter/yield.rb
unparser-0.2.2 lib/unparser/emitter/yield.rb
unparser-0.2.1 lib/unparser/emitter/yield.rb
unparser-0.2.0 lib/unparser/emitter/yield.rb
unparser-0.1.16 lib/unparser/emitter/yield.rb