Method: IsoDoc::HtmlFunction::Comments#comment_attributes
- Defined in:
- lib/isodoc/html_function/comments.rb
#comment_attributes(docxml, x) ⇒ Object
79 80 81 82 83 84 85 86 |
# File 'lib/isodoc/html_function/comments.rb', line 79 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 |