Class: Gitter::TableHeaderCell

Inherits:
TableCell show all
Defined in:
lib/gitter/table.rb

Instance Attribute Summary collapse

Attributes inherited from TableCell

#x, #y

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ TableHeaderCell

Returns a new instance of TableHeaderCell.



31
32
33
# File 'lib/gitter/table.rb', line 31

def initialize content
  @content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



29
30
31
# File 'lib/gitter/table.rb', line 29

def content
  @content
end

Instance Method Details

#formatted_contentObject



43
44
45
# File 'lib/gitter/table.rb', line 43

def formatted_content
  content
end

#header?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/gitter/table.rb', line 39

def header?
  true
end

#html(opts = {}) ⇒ Object



35
36
37
# File 'lib/gitter/table.rb', line 35

def html opts = {}
  Table.tag :th, formatted_content, opts
end