Sha256: 1fcb38a6a480052d621b915cbe5d0b5b4f44ddcce5d8020d81148cea19baaafa

Contents?: true

Size: 174 Bytes

Versions: 8

Compression:

Stored size: 174 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Matchers
    module NodeIsProc
      def self.===(node)
        node.proc?
      end

      freeze
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/matchers/node_is_proc.rb
leftovers-0.12.1 lib/leftovers/matchers/node_is_proc.rb
leftovers-0.12.0 lib/leftovers/matchers/node_is_proc.rb
leftovers-0.11.2 lib/leftovers/matchers/node_is_proc.rb
leftovers-0.11.1 lib/leftovers/matchers/node_is_proc.rb
leftovers-0.11.0 lib/leftovers/matchers/node_is_proc.rb
leftovers-0.10.0 lib/leftovers/matchers/node_is_proc.rb
leftovers-0.9.0 lib/leftovers/matchers/node_is_proc.rb