module _Range
A type thatโs usable like a Range[T].
Implicit _Range usage is usable frequently in rubyโs stdlib, such as Comparable#clamp, String#[], and Kernel#rand.
Public Instance Methods
() → T?
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/builtin.rbs, line 208
def begin: () -> T?
The beginning value, nil if there is no beginning.
() → T?
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/builtin.rbs, line 211
def end: () -> T?
The ending value, nil if there is no ending.
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/core/builtin.rbs, line 214
def exclude_end?: () -> bool
Whether or not to include the end in the range.