Sha256: 392c5f054e7dd3b69ef3b7a027b9e4d45e3708e27a553808b819f673bc0abb8b

Contents?: true

Size: 376 Bytes

Versions: 14

Compression:

Stored size: 376 Bytes

Contents

module Predicates

  module Compare

    def equals(value)
      value_predicate(:equals,:==,value)
    end

    alias equal_to equals

    def greater_than(value)
      value_predicate(:greater_than,:>,value)
    end

    def less_than(value)
      value_predicate(:less_than,:<,value)
    end

    def matches(value)
      regex_predicate(:matches,value)
    end

  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
totally_lazy-0.0.20 lib/predicates/compare.rb
totally_lazy-0.0.19 lib/predicates/compare.rb
totally_lazy-0.0.18 lib/predicates/compare.rb
totally_lazy-0.0.16 lib/predicates/compare.rb
totally_lazy-0.0.15 lib/predicates/compare.rb
totally_lazy-0.0.14 lib/predicates/compare.rb
totally_lazy-0.0.13 lib/predicates/compare.rb
totally_lazy-0.0.12 lib/predicates/compare.rb
totally_lazy-0.0.11 lib/predicates/compare.rb
totally_lazy-0.0.10 lib/predicates/compare.rb
totally_lazy-0.0.9 lib/predicates/compare.rb
totally_lazy-0.0.8 lib/predicates/compare.rb
totally_lazy-0.0.7 lib/predicates/compare.rb
totally_lazy-0.0.6 lib/predicates/compare.rb