File: //usr/local/rvm/gems/default/doc/actionview-6.1.4.1/ri/ActionView/Helpers/TextHelper/excerpt-i.ri
U:RDoc::AnyMethod[iI"excerpt:ETI",ActionView::Helpers::TextHelper#excerpt;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"RExtracts an excerpt from +text+ that matches the first instance of +phrase+. ;TI"}The <tt>:radius</tt> option expands the excerpt on each side of the first occurrence of +phrase+ by the number of characters ;TI"~defined in <tt>:radius</tt> (which defaults to 100). If the excerpt radius overflows the beginning or end of the +text+, ;TI"rthen the <tt>:omission</tt> option (which defaults to "...") will be prepended/appended accordingly. Use the ;TI"<tt>:separator</tt> option to choose the delimitation. The resulting string will be stripped in any case. If the +phrase+ ;TI"$isn't found, +nil+ is returned.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"4excerpt('This is an example', 'an', radius: 5)
;TI"# => ...s is an exam...
;TI"
;TI"4excerpt('This is an example', 'is', radius: 5)
;TI"# => This is a...
;TI"
;TI")excerpt('This is an example', 'is')
;TI"# => This is an example
;TI"
;TI"?excerpt('This next thing is an example', 'ex', radius: 2)
;TI"# => ...next...
;TI"
;TI"Nexcerpt('This is also an example', 'an', radius: 8, omission: '<chop> ')
;TI"$# => <chop> is also an example
;TI"
;TI"Texcerpt('This is a very beautiful morning', 'very', separator: ' ', radius: 1)
;TI" # => ...a very beautiful...;T:@format0:
@fileI"+lib/action_view/helpers/text_helper.rb;T:0@omit_headings_from_table_of_contents_below000[ I"!(text, phrase, options = {});T@'FI"TextHelper;TcRDoc::NormalModule00