Sha256: 17b2d737db267e87341e630283f3786c111285448bee5039e56b18c150feb187

Contents?: true

Size: 979 Bytes

Versions: 1

Compression:

Stored size: 979 Bytes

Contents

module Antlr4ruby
  class RangeSet[T]
    attr_accessor data: Array[Range[T]]

    def &: (RangeSet[T]) -> RangeSet[T]

    def +: (RangeSet[T]) -> RangeSet[T]

    def -: (RangeSet[T]) -> RangeSet[T]

    def add: (Range[T]) -> void

    def add_all: (Enumerable[Range[T]] | RangeSet[T]) -> void

    def clear: -> void

    def complement: (RangeSet[T]) -> RangeSet[T]

    def cover?: (Range[T]) -> bool

    def delete: (Range[T]) -> void

    def delete_all: (Enumerable[Range[T]] | RangeSet[T]) -> void

    def empty?: -> bool

    def include?: (Integer) -> bool

    def merge: (RangeSet[T]) -> void

    def start: -> Integer?

    def stop: -> Integer?

    def to_a: -> Array[Range[T]]

    def to_set: -> Set[Range[T]]

    def |: (RangeSet[T]) -> RangeSet[T]

    def ~: -> RangeSet[T]

    def initialize: (Array[Range[T]]) -> void

    def eql?: (RangeSet[T]?) -> bool

    def == :(RangeSet[T]) -> bool
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 sig/antlr4ruby/misc/range_set.rbs