Top Level Namespace

Defined Under Namespace

Classes: SubString

Instance Method Summary collapse

Instance Method Details

#SubString(*rest, **kwd) ⇒ Object

Function version of SubString#initialize

Parameters:

  • source (String)
  • pos (Integer)

    Starting character index position.

  • size (Integer, nil)

    Size of the substring to make.

  • attr: (Object)

    user-specified arbitrary object



43
44
45
# File 'lib/sub_string.rb', line 43

def SubString(*rest, **kwd)
  SubString.new(*rest, **kwd)
end