Class: Sablon::Processor::Document::ParagraphBlock
- Defined in:
- lib/sablon/processor/document/blocks.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Block
Class Method Summary collapse
Methods inherited from Block
#body, enclosed_by, #end_node, #initialize, parent, parent_selector, #process, #remove_control_elements, #replace, #start_node
Constructor Details
This class inherits a constructor from Sablon::Processor::Document::Block
Class Method Details
.encloses?(start_field, end_field) ⇒ Boolean
84 85 86 |
# File 'lib/sablon/processor/document/blocks.rb', line 84 def self.encloses?(start_field, end_field) super && parent(start_field) != parent(end_field) end |