lib/docbookrx/docbook_visitor.rb
# transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
def process_keyword node
    role, char = case (name = node.name)
    when 'firstterm'
      ['term', '_']
    when 'citetitle'
      ['ref', '_']
    else
      [name, '#']
    end
    append_text %([#{role}]#{char}#{node.text}#{char})
    false
  end
def process_keyword node role , char = case ( name = node . name ) when 'firstterm' [ 'term' , '_' ] when 'citetitle' [ 'ref' , '_' ] else [ name , '#' ] end append_text %([#{role}]#{char}#{node.text}#{char}) false end
transfer node type constants from Nokogiri
transfer node type constants from Nokogiri
node
<not_specific>