Class: Sablon::Processor::Document::RowBlock

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, #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)


78
79
80
# File 'lib/sablon/processor/document/blocks.rb', line 78

def self.encloses?(start_field, end_field)
  super && parent(start_field) != parent(end_field)
end

.parent_selectorObject



74
75
76
# File 'lib/sablon/processor/document/blocks.rb', line 74

def self.parent_selector
  './/w:tr'
end