Sha256: 950231decd165f4a318419cba4cc55c41bc6d96dc41b4eb73d76f040671c7de4
Contents?: true
Size: 314 Bytes
Versions: 4
Compression:
Stored size: 314 Bytes
Contents
require "must/version" # Must module Must class Invalid < StandardError; end class ShouldNotEmpty < Invalid; end def must(*args, &block) if args.size > 0 Rule.new(self).be.kind_of(*args, &block) else Rule.new(self) end end end require "must/rule" Object.__send__ :include, Must
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
must-0.2.8 | lib/must.rb |
must-0.2.7 | lib/must.rb |
must-0.2.6 | lib/must.rb |
must-0.2.5 | lib/must.rb |