Ruby - How to select some characters from string

Viewed 93735

I am trying to find a function for select e.g. first 100 chars of the string. In PHP, there exists the substr function

Does Ruby have some similar function?

2 Answers
Related