Sha256: c89f077bb92831904ed62420cd95e2a442741c8d3422482e045bc9e9084e0b35

Contents?: true

Size: 382 Bytes

Versions: 25

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Expressions
    class TextP < P
      class << self
        %i[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
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
grumlin-0.23.0 lib/grumlin/expressions/text_p.rb
grumlin-0.22.5 lib/grumlin/expressions/text_p.rb
grumlin-0.22.4 lib/grumlin/expressions/text_p.rb
grumlin-0.22.3 lib/grumlin/expressions/text_p.rb
grumlin-0.22.2 lib/grumlin/expressions/text_p.rb
grumlin-0.22.1 lib/grumlin/expressions/text_p.rb
grumlin-0.22.0 lib/grumlin/expressions/text_p.rb
grumlin-0.21.1 lib/grumlin/expressions/text_p.rb
grumlin-0.21.0 lib/grumlin/expressions/text_p.rb
grumlin-0.20.2 lib/grumlin/expressions/text_p.rb
grumlin-0.20.1 lib/grumlin/expressions/text_p.rb
grumlin-0.20.0 lib/grumlin/expressions/text_p.rb
grumlin-0.19.7 lib/grumlin/expressions/text_p.rb
grumlin-0.19.6 lib/grumlin/expressions/text_p.rb
grumlin-0.19.5 lib/grumlin/expressions/text_p.rb
grumlin-0.19.4 lib/grumlin/expressions/text_p.rb
grumlin-0.19.3 lib/grumlin/expressions/text_p.rb
grumlin-0.19.2 lib/grumlin/expressions/text_p.rb
grumlin-0.19.1 lib/grumlin/expressions/text_p.rb
grumlin-0.19.0 lib/grumlin/expressions/text_p.rb