Sha256: 3e75d5efd393b779c9d05d7fa67c2e852f7f1e0ff08a0dd13ddb710d2edb535f

Contents?: true

Size: 428 Bytes

Versions: 111

Compression:

Stored size: 428 Bytes

Contents

module Regexp::Expression
  class CharacterSet < Regexp::Expression::Subexpression
    class Range < Regexp::Expression::Subexpression
      def ts
        (head = expressions.first) ? head.ts : @ts
      end

      def <<(exp)
        complete? and raise Regexp::Parser::Error,
          "Can't add more than 2 expressions to a Range"
        super
      end

      def complete?
        count == 2
      end
    end
  end
end

Version data entries

111 entries across 111 versions & 15 rubygems

Version Path
harbr-0.1.45 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
harbr-0.1.44 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
harbr-0.1.43 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
harbr-0.1.42 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
harbr-0.1.41 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
harbr-0.1.39 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
harbr-0.1.38 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
harbr-0.1.37 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.8.3/lib/regexp_parser/expression/classes/character_set/range.rb
study_line-0.1.6 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
study_line-0.1.5 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
study_line-0.1.4 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
study_line-0.1.3 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
study_line-0.1.2 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
study_line-0.1.1 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/classes/character_set/range.rb
regexp_parser-2.8.3 lib/regexp_parser/expression/classes/character_set/range.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/classes/character_set/range.rb
regexp_parser-2.8.2 lib/regexp_parser/expression/classes/character_set/range.rb
synctera_ruby_sdk-1.1.3 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/classes/character_set/range.rb
synctera_ruby_sdk-1.1.2 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.1/lib/regexp_parser/expression/classes/character_set/range.rb