method

from

Importance_1
v2.0.3 - Show latest stable - 0 notes - Class: ActiveSupport::CoreExtensions::String::Access
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
Show source
Register or log in to add new notes.