Class: HParser::Block::TableHeader

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) ⇒ 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

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



163
164
165
166
# File 'lib/hparser/latex.rb', line 163

def to_latex
  content = super
  content
end