Sha256: 1bd8a1ab50bd080421d0e381b3835d0bec6acd733635dc2bba84ba1078a65337
Contents?: true
Size: 419 Bytes
Versions: 28
Compression:
Stored size: 419 Bytes
Contents
# more helpers class Object # ex: assert(some statement) # or # assert(some statement, "some helper string") def assert(should_be_true, string = nil) if(!should_be_true) raise "assertion failed #{string}" end end unless respond_to? :assert def refute(this_boolean, string = nil) assert(!this_boolean, string) end alias :y! :assert alias :yes! :assert end
Version data entries
28 entries across 28 versions & 1 rubygems