Module: WrapIt::TextContainer
- Included in:
- Link
- Defined in:
- lib/wrap_it/text_container.rb
Overview
Provides functionality for text-contained components.
Text can be captured from :text or :body option, or as first unparsed
String argument, or in block, provided to constructor.
If block given, text will be captured from it in priority, so String arguments and options will not parsed. You can cancel this manner by calling text_in_block(false) method.
This module adds body section before base content section.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#body ⇒ String
Retrieves body text.
Instance Method Details
#body ⇒ String
Retrieves body text
45 46 47 |
# File 'lib/wrap_it/text_container.rb', line 45 def body @body ||= empty_html end |