Sha256: 71e6f68203e5d40cc0b8cfc9c193b3335e141d1edb26bcc4628016fab8ad4dd3

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

module ToSource
  class Emitter
    # Emitter for defined? node
    class Defined < self

      handle(Rubinius::AST::Defined)

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        emit('defined?(')
        visit(node.expression)
        emit(')')
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
to_source-0.2.20 lib/to_source/emitter/defined.rb
to_source-0.2.19 lib/to_source/emitter/defined.rb
to_source-0.2.18 lib/to_source/emitter/defined.rb
to_source-0.2.17 lib/to_source/emitter/defined.rb
to_source-0.2.16 lib/to_source/emitter/defined.rb