Sha256: a6aa75ac79ca0c9032db8271e7fc4bea41b2b65638f5f1b329b285193a41d18a

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module MatcherBuilders
    module NodeHasBlock
      class << self
        def build(has_block)
          if has_block
            Matchers::NodeHasBlock
          elsif has_block == false
            Matchers::Not.new(Matchers::NodeHasBlock)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/matcher_builders/node_has_block.rb
leftovers-0.12.1 lib/leftovers/matcher_builders/node_has_block.rb
leftovers-0.12.0 lib/leftovers/matcher_builders/node_has_block.rb
leftovers-0.11.2 lib/leftovers/matcher_builders/node_has_block.rb