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.18.1 lib/grumlin/expressions/text_p.rb
grumlin-0.18.0 lib/grumlin/expressions/text_p.rb
grumlin-0.17.0 lib/grumlin/expressions/text_p.rb
grumlin-0.16.1 lib/grumlin/expressions/text_p.rb
grumlin-0.16.0 lib/grumlin/expressions/text_p.rb