method

insert

Importance_1
v2.3.8 - Show latest stable - 0 notes - Class: ActiveSupport::Multibyte::Chars
insert(offset, fragment) public

Inserts the passed string at specified codepoint offsets.

Example:

  'Café'.mb_chars.insert(4, ' périferôl').to_s #=> "Café périferôl"
Show source
Register or log in to add new notes.