Class: Uniword::FindReplace::BodyScope
- Defined in:
- lib/uniword/find_replace/body_scope.rb
Overview
Body scope: text in word/document.xml. Walks every paragraph
reachable from the body (including paragraphs nested in table
cells and structured document tags).
Instance Method Summary collapse
Methods inherited from Scope
Constructor Details
This class inherits a constructor from Uniword::FindReplace::Scope
Instance Method Details
#each_text_node {|text_element, accessor| ... } ⇒ Object
16 17 18 19 20 |
# File 'lib/uniword/find_replace/body_scope.rb', line 16 def each_text_node return unless @document.body each_text_in_containers([@document.body]) { |*a| yield(*a) } end |
#name ⇒ Symbol
10 11 12 |
# File 'lib/uniword/find_replace/body_scope.rb', line 10 def name :body end |