--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Wraps the <tt>text</tt> into lines no longer than <tt>line_width</tt> width. This method breaks on the first whitespace character that does not exceed <tt>line_width</tt> (which is 80 by default).
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  word_wrap('Once upon a time', 4)\n  # =&gt; Once\\nupon\\na\\ntime\n\n  word_wrap('Once upon a time', 8)\n  # =&gt; Once upon\\na time\n\n  word_wrap('Once upon a time')\n  # =&gt; Once upon a time\n\n  word_wrap('Once upon a time', 1)\n  # =&gt; Once\\nupon\\na\\ntime\n"
full_name: ActionView::Helpers::TextHelper#word_wrap
is_singleton: false
name: word_wrap
params: (text, line_width = 80)
visibility: public
