Sha256: 3f146cc6d7bddf237515c7e0985e18d614d0cd8eb90ea21a6d32b0caaac67665

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

# encoding: utf-8

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

      handle :defined?

      children :subject

    private

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

    end # Defined
  end # Emitter
end # Unparser

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unparser-0.1.7 lib/unparser/emitter/defined.rb
unparser-0.1.6 lib/unparser/emitter/defined.rb