Module: Shoulda::Matchers::WordWrap

Included in:
Shoulda::Matchers
Defined in:
lib/shoulda/matchers/util/word_wrap.rb

Constant Summary collapse

TERMINAL_WIDTH =
72

Instance Method Summary collapse

Instance Method Details

#word_wrap(document, options = {}) ⇒ Object



7
8
9
# File 'lib/shoulda/matchers/util/word_wrap.rb', line 7

def word_wrap(document, options = {})
  Document.new(document, **options).wrap
end