Method: IsoDoc::WordFunction::Comments#comment_attributes
- Defined in:
- lib/isodoc/word_function/comments.rb
#comment_attributes(docxml, x) ⇒ Object
85 86 87 88 89 90 91 |
# File 'lib/isodoc/word_function/comments.rb', line 85 def comment_attributes(docxml, x) fromlink = docxml.at("//*[@id='#{x['from']}']") return(nil) if fromlink.nil? tolink = docxml.at("//*[@id='#{x['to']}']") || fromlink target = docxml.at("//*[@id='#{x['target']}']") { from: fromlink, to: tolink, target: target } end |