File: //usr/local/rvm/gems/default/doc/activesupport-6.1.4.1/ri/String/truncate_words-i.ri
U:RDoc::AnyMethod[iI"truncate_words:ETI"String#truncate_words;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"STruncates a given +text+ after a given number of words (<tt>words_count</tt>):;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"B'Once upon a time in a world far far away'.truncate_words(4)
;TI" # => "Once upon a time..."
;T:@format0o;
; [I"[Pass a string or regexp <tt>:separator</tt> to specify a different separator of words:;T@o;; [I"Z'Once<br>upon<br>a<br>time<br>in<br>a<br>world'.truncate_words(5, separator: '<br>')
;TI"/# => "Once<br>upon<br>a<br>time<br>in..."
;T;
0o;
; [I"aThe last characters will be replaced with the <tt>:omission</tt> string (defaults to "..."):;T@o;; [I"l'And they found that many people were sleeping better.'.truncate_words(5, omission: '... (continued)')
;TI"3# => "And they found that many... (continued)";T;
0:
@fileI"2lib/active_support/core_ext/string/filters.rb;T:0@omit_headings_from_table_of_contents_below000[ I" (words_count, options = {});T@!FI"String;TcRDoc::NormalClass00