Method: IsoDoc::ClassUtils#nearest_block_parent
- Defined in:
- lib/isodoc/class_utils.rb
#nearest_block_parent(node) ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'lib/isodoc/class_utils.rb', line 68 def nearest_block_parent(node) until %w(p title td th name formula li dt dd sourcecode pre quote note example target clause annex term appendix bibdata) .include?(node.name) node = node.parent end node end |