Sha256: 53388d59c7a8c6dc31a4d35370b915cfd23d0336645c8ca299fa88441fdb2f79
Contents?: true
Size: 519 Bytes
Versions: 16
Compression:
Stored size: 519 Bytes
Contents
module Regexp::Expression # abstract class class SequenceOperation < Regexp::Expression::Subexpression alias :sequences :expressions alias :operands :expressions alias :operator :text def starts_at expressions.first.starts_at end alias :ts :starts_at def <<(exp) expressions.last << exp end def add_sequence(active_opts = {}) self.class::OPERAND.add_to(self, {}, active_opts) end def parts intersperse(expressions, text.dup) end end end
Version data entries
16 entries across 16 versions & 6 rubygems