Sha256: edd9e5e0aecf4351e3fa3121de889f4ef155810e76d897398da42eb89f07dde8
Contents?: true
Size: 270 Bytes
Versions: 1
Compression:
Stored size: 270 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-1.0 | examples/case_equality_check.rb |