Class: HParser::Block::SeeMore
- Inherits:
-
Object
- Object
- HParser::Block::SeeMore
- Includes:
- Collectable
- Defined in:
- lib/hparser/block/see_more.rb,
lib/hparser/html.rb,
lib/hparser/text.rb,
lib/hparser/latex.rb
Overview
SeeMore line parser.
or =====
Instance Attribute Summary collapse
-
#is_super ⇒ Object
readonly
Returns the value of attribute is_super.
Class Method Summary collapse
Instance Method Summary collapse
- #==(o) ⇒ Object
-
#initialize(is_super) ⇒ SeeMore
constructor
A new instance of SeeMore.
- #to_html ⇒ Object
- #to_latex ⇒ Object
- #to_text ⇒ Object
Constructor Details
#initialize(is_super) ⇒ SeeMore
Returns a new instance of SeeMore.
22 23 24 |
# File 'lib/hparser/block/see_more.rb', line 22 def initialize(is_super) @is_super = is_super end |
Instance Attribute Details
#is_super ⇒ Object (readonly)
Returns the value of attribute is_super.
21 22 23 |
# File 'lib/hparser/block/see_more.rb', line 21 def is_super @is_super end |
Class Method Details
Instance Method Details
#==(o) ⇒ Object
26 27 28 |
# File 'lib/hparser/block/see_more.rb', line 26 def ==(o) o.class == self.class and o.is_super == self.is_super end |
#to_html ⇒ Object
103 104 105 106 107 108 109 |
# File 'lib/hparser/html.rb', line 103 def to_html() if self.is_super '<a name="seeall"></a>' else '<a name="seemore"></a>' end end |
#to_latex ⇒ Object
78 |
# File 'lib/hparser/latex.rb', line 78 def to_latex() '' end |
#to_text ⇒ Object
43 |
# File 'lib/hparser/text.rb', line 43 def to_text() "" end |