Class: Shoulda::Matchers::Paragraph
- Inherits:
-
Object
- Object
- Shoulda::Matchers::Paragraph
- Defined in:
- lib/shoulda/matchers/util/word_wrap.rb
Instance Method Summary collapse
-
#initialize(paragraph, indent: 0) ⇒ Paragraph
constructor
A new instance of Paragraph.
- #wrap ⇒ Object
Constructor Details
Instance Method Details
#wrap ⇒ Object
66 67 68 69 70 71 72 73 74 |
# File 'lib/shoulda/matchers/util/word_wrap.rb', line 66 def wrap if paragraph.indented? lines elsif paragraph.list_item? wrap_list_item else wrap_generic_paragraph end end |