Sha256: b75b862d3b0d60b776e72c710b6fdf34424af4a4c7855a96adf2c6772038cf67

Contents?: true

Size: 471 Bytes

Versions: 11

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

module Unparser
  class Emitter
    # Emitter for defined? nodes
    class Defined < self
      include Terminated

      handle :defined?

      children :subject

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_DEFINED)
        parentheses do
          visit(subject)
        end
      end

    end # Defined
  end # Emitter
end # Unparser

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unparser-0.4.9 lib/unparser/emitter/defined.rb
unparser-0.4.8 lib/unparser/emitter/defined.rb
unparser-0.4.7 lib/unparser/emitter/defined.rb
unparser-0.4.6 lib/unparser/emitter/defined.rb
unparser-0.4.5 lib/unparser/emitter/defined.rb
unparser-0.4.4 lib/unparser/emitter/defined.rb
unparser-0.4.3 lib/unparser/emitter/defined.rb
unparser-0.4.2 lib/unparser/emitter/defined.rb
unparser-0.4.1 lib/unparser/emitter/defined.rb
unparser-0.4.0 lib/unparser/emitter/defined.rb
unparser-0.3.0 lib/unparser/emitter/defined.rb