Sha256: 363579b75a312a095a4397ea51f505e3a223b262296de8fdf1817efff617c106

Contents?: true

Size: 389 Bytes

Versions: 13

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

module Shivers
  module Matchers
    class Recursive
      include ValueEquality

      attr_reader :capture_group, :first, :rest

      def initialize(capture_group, first, rest)
        @capture_group = capture_group
        @first = first
        @rest = rest
      end

      def state
        [@capture_group, @first, @rest]
      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/recursive.rb
shivers-0.6.0.pre.14 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.13 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.12 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.11 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.10 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.9 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.8 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.7 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.6 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.5 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.4 lib/shivers/matchers/recursive.rb
shivers-0.6.0.pre.3 lib/shivers/matchers/recursive.rb