Sha256: 87f3cc166dda7c051265cc0b75b1ff39949614aa1c4d07436dc1125c2e77b948
Contents?: true
Size: 276 Bytes
Versions: 1
Compression:
Stored size: 276 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, lambda{ |n| n.odd? }) puts "All passed"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplecheck-1.0rc1 | examples/case_equality_check.rb |