Mega Code Archive
Categories
/
Ruby
/
String
Slice a string
string = 'My first string' # => "My first string" string.slice(3, 5) # => "first"