Sha256: 43a673d749d876c75e3c50bc44691c356e9ab8eaf2df240ea94ec44672a0854a

Contents?: true

Size: 415 Bytes

Versions: 17

Compression:

Stored size: 415 Bytes

Contents

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)
        parentheses do
          visit(subject)
        end
      end

    end # Defined
  end # Emitter
end # Unparser

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
unparser-0.1.0 lib/unparser/emitter/defined.rb
unparser-0.0.18 lib/unparser/emitter/defined.rb
unparser-0.0.16 lib/unparser/emitter/defined.rb
unparser-0.0.15 lib/unparser/emitter/defined.rb
unparser-0.0.14 lib/unparser/emitter/defined.rb
unparser-0.0.13 lib/unparser/emitter/defined.rb
unparser-0.0.12 lib/unparser/emitter/defined.rb
unparser-0.0.11 lib/unparser/emitter/defined.rb
unparser-0.0.10 lib/unparser/emitter/defined.rb
unparser-0.0.8 lib/unparser/emitter/defined.rb
unparser-0.0.7 lib/unparser/emitter/defined.rb
unparser-0.0.6 lib/unparser/emitter/defined.rb
unparser-0.0.5 lib/unparser/emitter/defined.rb
unparser-0.0.4 lib/unparser/emitter/defined.rb
unparser-0.0.3 lib/unparser/emitter/defined.rb
unparser-0.0.2 lib/unparser/emitter/defined.rb
unparser-0.0.1 lib/unparser/emitter/defined.rb