Sha256: 5f28bee29b631d12be762315ccaea9096329e8febcb8d83b12e505981bcfd178

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Expression
    class Descendants < self
      include Anima.new(:const_name)

      REGEXP = /\Adescendants:(?<const_name>.+)\z/

      def syntax
        "descendants:#{const_name}"
      end

      # rubocop:disable Lint/UnusedMethodArgument
      def matcher(env:)
        Matcher::Descendants.new(const_name:)
      end
    end # Descendants
  end # Expression
end # Mutant

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutant-0.12.4 lib/mutant/expression/descendants.rb
mutant-0.12.3 lib/mutant/expression/descendants.rb