Sha256: cb8b4969611ea44697938304c3a5132acd6caafd6dd2e29c05ffe7ee7751f9aa
Contents?: true
Size: 275 Bytes
Versions: 2
Compression:
Stored size: 275 Bytes
Contents
module Predicates private def _not(pred) -> (bool) { !pred.(bool) } end def is_left? -> (either) { either.is_left? } end def is_right? -> (either) { either.is_right? } end def matches?(regex) ->(value) { !regex.match(value).nil? } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
totally_lazy-0.1.43 | lib/totally_lazy/predicates.rb |
totally_lazy-0.1.42 | lib/totally_lazy/predicates.rb |