Sha256: 331656931ccc7e1c51dfc547d3ed7f11e42620210f88700ea4e5e75577ac71f1

Contents?: true

Size: 211 Bytes

Versions: 1

Compression:

Stored size: 211 Bytes

Contents

require 'simplecheck'

include Simplecheck

# Block passed implicitly to check
check(2, 4) { |x| x.even? }

# Block passed explicity to check
is_even = ->(x) { x.even? }
check(2, 4, &is_even)

puts 'All passed'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplecheck-2.0 examples/block_example.rb