class Substring

Attributes

range[R]

Public Class Methods

new(str, idx, len) click to toggle source
Calls superclass method
# File lib/adlint/prelude.rb, line 189
def initialize(str, idx, len)
  @range = idx...(idx + len)
  super(str.slice(@range))
end