Sha256: 69375098896ddf70d387c6115f0a72b22f4de48fc599070da5c2eac1c1f8081c
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
require "must/version" # Must module Must class Invalid < StandardError; end class ClassMismatch < Invalid; end class StructMismatch < Invalid; end class ValueMismatch < 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" require "must/differ" require "must/struct_info" Object.__send__ :include, Must
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
must-0.3.0 | lib/must.rb |
must-0.2.9 | lib/must.rb |