Sha256: 1f62c2533a712f73347a38aa7384647c138bc22298f0c7a27230e3b470516fdf
Contents?: true
Size: 264 Bytes
Versions: 1
Compression:
Stored size: 264 Bytes
Contents
require 'simplecheck' include Simplecheck # Class#=== -> Class#kind_of? check(1, Integer) # Regexp#=== -> Regexp#match check('aaabbb', /^aaa/) # Range#=== -> Range#include? check(1, 1..10) # Proc#=== -> Proc#call check(1, ->(n) { n.odd? }) puts 'All passed'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplecheck-2.0 | examples/case_equality_check.rb |