Sha256: 5499591504c021a90723441bc14193962443376eeae8de03f4d1576708c8bdad

Contents?: true

Size: 462 Bytes

Versions: 108

Compression:

Stored size: 462 Bytes

Contents

module Regexp::Expression
  # abstract class
  class SequenceOperation < Regexp::Expression::Subexpression
    alias :sequences :expressions
    alias :operands :expressions
    alias :operator :text

    def ts
      (head = expressions.first) ? head.ts : @ts
    end

    def <<(exp)
      expressions.last << exp
    end

    def add_sequence(active_opts = {}, params = { ts: 0 })
      self.class::OPERAND.add_to(self, params, active_opts)
    end
  end
end

Version data entries

108 entries across 108 versions & 14 rubygems

Version Path
synctera_ruby_sdk-1.0.0 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/sequence_operation.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/sequence_operation.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/sequence_operation.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/sequence_operation.rb
fablicop-1.10.2 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/sequence_operation.rb
regexp_parser-2.8.1 lib/regexp_parser/expression/sequence_operation.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/regexp_parser-2.8.0/lib/regexp_parser/expression/sequence_operation.rb
regexp_parser-2.8.0 lib/regexp_parser/expression/sequence_operation.rb