Flowdock
method

slice

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveSupport::Multibyte::Chars

Method deprecated or moved

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

These similar methods exist in v4.0.2:

slice(*args) public

Implements Unicode-aware slice with codepoints. Slicing on one point returns the codepoints for that character.

Example:

'こんにちは'.mb_chars.slice(2..3).to_s # => "にち"
Show source
Register or log in to add new notes.