Class: ReverseAsciidoctor::Converters::Th

Inherits:
Td
  • Object
show all
Defined in:
lib/reverse_asciidoctor/converters/th.rb

Instance Method Summary collapse

Methods inherited from Td

#alignstyle, #colrow, #convert

Methods inherited from Base

#escape_keychars, #extract_title, #treat, #treat_children

Instance Method Details

#cellstyle(node) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/reverse_asciidoctor/converters/th.rb', line 4

def cellstyle(node)
  if node.parent.previous_element.nil?
    # this is the header row
    ""
  else
    "h"
  end
end