Answer the question
In order to leave comments, you need to log in
How can you cut text in Ruby (after a certain number of characters)?
There is a long text. I want to cut out the rest of the text after 10 characters (and at the end I want to write '...').
How can I do that?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question