method

from

rails latest stable - Class: ActiveSupport::CoreExtensions::String::Access

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

from(position)
public

Returns the remaining of the string from the position treating the string as an array (where 0 is the first character).

Examples:

  "hello".from(0)  # => "hello"
  "hello".from(2)  # => "llo"
  "hello".from(10) # => nil