Sha256: f1c939fdcb44b8bb37ac01fb00dc870012eae5f90aff8baa6385d676d9fb680a

Contents?: true

Size: 391 Bytes

Versions: 13

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

module Shivers
  module Matchers
    class Parent
      include ValueEquality

      attr_reader :matcher, :capturer, :children

      def initialize(matcher, capturer, children)
        @matcher = matcher
        @capturer = capturer
        @children = children
      end

      def state
        [@matcher, @capturer, @children]
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shivers-0.6.0.pre.15 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.14 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.13 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.12 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.11 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.10 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.9 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.8 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.7 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.6 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.5 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.4 lib/shivers/matchers/parent.rb
shivers-0.6.0.pre.3 lib/shivers/matchers/parent.rb