Sha256: f5d6396e6315e287f97bc517d837285c844ee2efcc1bcc1361cde396b9bbcfa8

Contents?: true

Size: 393 Bytes

Versions: 24

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

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

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

      def syntax
        "descendants:#{const_name}"
      end

      def matcher
        Matcher::Descendants.new(const_name: const_name)
      end
    end # Descendants
  end # Expression
end # Mutant

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mutant-0.11.25 lib/mutant/expression/descendants.rb
mutant-0.11.24 lib/mutant/expression/descendants.rb
mutant-0.11.23 lib/mutant/expression/descendants.rb
mutant-0.11.22 lib/mutant/expression/descendants.rb
mutant-0.11.21 lib/mutant/expression/descendants.rb
mutant-0.11.20 lib/mutant/expression/descendants.rb
mutant-0.11.19 lib/mutant/expression/descendants.rb
mutant-0.11.18 lib/mutant/expression/descendants.rb
mutant-0.11.17 lib/mutant/expression/descendants.rb
mutant-0.11.16 lib/mutant/expression/descendants.rb
mutant-0.11.15 lib/mutant/expression/descendants.rb
mutant-0.11.14 lib/mutant/expression/descendants.rb
mutant-0.11.13 lib/mutant/expression/descendants.rb
mutant-0.11.12 lib/mutant/expression/descendants.rb
mutant-0.11.11 lib/mutant/expression/descendants.rb
mutant-0.11.10 lib/mutant/expression/descendants.rb
mutant-0.11.9 lib/mutant/expression/descendants.rb
mutant-0.11.8 lib/mutant/expression/descendants.rb
mutant-0.11.7 lib/mutant/expression/descendants.rb
mutant-0.11.6 lib/mutant/expression/descendants.rb