Class: Sablon::Processor::Document::ParagraphBlock

Inherits:
Block
  • Object
show all
Defined in:
lib/sablon/processor/document/blocks.rb

Instance Attribute Summary

Attributes inherited from Block

#end_field, #start_field

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

Returns:

  • (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