class

Asciidoctor::Table::Cell

Inherits Asciidoctor::AbstractBlock < Asciidoctor::Substitutors < Asciidoctor::AbstractNode < Asciidoctor::Logging < Reference < Object

Methods for managing a cell in an AsciiDoc table.

Constructors

new(column : Table::Column, cell_text : String = "", attributes : Hash(String, String) = {} of String => String, colspan : Int32 | Nil = nil, rowspan : Int32 | Nil = nil, style : Symbol | Nil = nil)
Source

Instance methods

cell_style

The style of this cell.

Source
cell_style=(cell_style : Symbol | Nil)

The style of this cell.

Source
colspan

The number of columns this cell will span.

Source
colspan=(colspan : Int32 | Nil)

The number of columns this cell will span.

Source
column

The parent column.

Source
content

Handles the body data (tbody, tfoot), applying styles and partitioning into paragraphs.

Source
document
Source
file

Get the source file where this cell started.

Source
inner_document

The nested Document in an AsciiDoc table cell (only set when style is :asciidoc).

Source
lineno

Get the source line number where this cell started.

Source
lines
Source
rowspan

The number of rows this cell will span.

Source
rowspan=(rowspan : Int32 | Nil)

The number of rows this cell will span.

Source
source
Source
text

Get the String text of this cell with substitutions applied.

Source
text=(val : String)

Set the String text for this cell.

Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source