Class: HParser::Block::TableCell

Inherits:
Object
  • Object
show all
Includes:
Hatena, Html, Latex, Text
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

Instance Method Summary collapse

Methods included from Hatena

#to_hatena

Methods included from Text

#to_text

Methods included from Html

#escape, #to_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

#contentObject (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_latexObject



174
175
176
177
# File 'lib/hparser/latex.rb', line 174

def to_latex
  content = super
  content
end