Class: HParser::Block::TableHeader
- Inherits:
-
Object
- Object
- HParser::Block::TableHeader
- 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
- #hatena_filter(c) ⇒ Object
-
#initialize(content) ⇒ TableHeader
constructor
A new instance of TableHeader.
- #to_latex ⇒ Object
Methods included from Hatena
Methods included from Text
Methods included from Html
Constructor Details
#initialize(content) ⇒ TableHeader
Returns a new instance of TableHeader.
45 46 47 |
# File 'lib/hparser/block/table.rb', line 45 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.
44 45 46 |
# File 'lib/hparser/block/table.rb', line 44 def content @content end |
Instance Method Details
#==(o) ⇒ Object
49 50 51 |
# File 'lib/hparser/block/table.rb', line 49 def ==(o) o.class == self.class and o.content == self.content end |
#hatena_filter(c) ⇒ Object
89 90 91 |
# File 'lib/hparser/hatena.rb', line 89 def hatena_filter c '*'+c end |
#to_latex ⇒ Object
163 164 165 166 |
# File 'lib/hparser/latex.rb', line 163 def to_latex content = super content end |