Sha256: 4f6925b248016a8cdc50343519874d619d266ba42884ee7df52345510940b1e3

Contents?: true

Size: 353 Bytes

Versions: 12

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

class Grumlin::Expressions::TextP < Grumlin::Expressions::P
  class << self
    [:containing, :endingWith, :notContaining, :notEndingWith, :notStartingWith, :startingWith].each do |predicate|
      define_method predicate do |*args|
        P::Predicate.new("TextP", predicate, value: args[0])
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
grumlin-1.0.3 lib/grumlin/expressions/text_p.rb
grumlin-1.0.3.beta1 lib/grumlin/expressions/text_p.rb
grumlin-1.0.2 lib/grumlin/expressions/text_p.rb
grumlin-1.0.1 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0.rc7 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0.rc6 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0.rc5 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0.rc4 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0.rc3 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0.rc2 lib/grumlin/expressions/text_p.rb
grumlin-1.0.0.rc1 lib/grumlin/expressions/text_p.rb