Sha256: 8773597999250a2f4b49cebb933ddff1a1b0d1b4beebd6835076ed942667d296

Contents?: true

Size: 418 Bytes

Versions: 22

Compression:

Stored size: 418 Bytes

Contents

module Unparser
  class Emitter

    # Emitter for yield node
    class Yield < self

      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

22 entries across 22 versions & 1 rubygems

Version Path
unparser-0.1.5 lib/unparser/emitter/yield.rb
unparser-0.1.4 lib/unparser/emitter/yield.rb
unparser-0.1.3 lib/unparser/emitter/yield.rb
unparser-0.1.2 lib/unparser/emitter/yield.rb
unparser-0.1.1 lib/unparser/emitter/yield.rb
unparser-0.1.0 lib/unparser/emitter/yield.rb
unparser-0.0.18 lib/unparser/emitter/yield.rb
unparser-0.0.16 lib/unparser/emitter/yield.rb
unparser-0.0.15 lib/unparser/emitter/yield.rb
unparser-0.0.14 lib/unparser/emitter/yield.rb
unparser-0.0.13 lib/unparser/emitter/yield.rb
unparser-0.0.12 lib/unparser/emitter/yield.rb
unparser-0.0.11 lib/unparser/emitter/yield.rb
unparser-0.0.10 lib/unparser/emitter/yield.rb
unparser-0.0.8 lib/unparser/emitter/yield.rb
unparser-0.0.7 lib/unparser/emitter/yield.rb
unparser-0.0.6 lib/unparser/emitter/yield.rb
unparser-0.0.5 lib/unparser/emitter/yield.rb
unparser-0.0.4 lib/unparser/emitter/yield.rb
unparser-0.0.3 lib/unparser/emitter/yield.rb