Class: HParser::Block::TableCell
- Inherits:
-
Object
- Object
- HParser::Block::TableCell
- Defined in:
- lib/hparser/html.rb,
lib/hparser/text.rb,
lib/hparser/latex.rb,
lib/hparser/hatena.rb,
lib/hparser/block/table.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
(also: #html_content, #text_content, #latex_content, #hatena_content)
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #==(o) ⇒ Object
-
#initialize(content) ⇒ TableCell
constructor
A new instance of TableCell.
- #to_latex ⇒ Object
Methods included from Hatena
Methods included from Text
Methods included from Html
Constructor Details
#initialize(content) ⇒ TableCell
Returns a new instance of TableCell.
56 57 58 |
# File 'lib/hparser/block/table.rb', line 56 def initialize(content) @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly) Also known as: html_content, text_content, latex_content, hatena_content
Returns the value of attribute content.
55 56 57 |
# File 'lib/hparser/block/table.rb', line 55 def content @content end |
Instance Method Details
#==(o) ⇒ Object
60 61 62 |
# File 'lib/hparser/block/table.rb', line 60 def ==(o) o.class == self.class and o.content == self.content end |
#to_latex ⇒ Object
174 175 176 177 |
# File 'lib/hparser/latex.rb', line 174 def to_latex content = super content end |