Class: Aozora2Html::Tag::Jisage
- Inherits:
-
Indent
- Object
- Aozora2Html::Tag
- Block
- Indent
- Aozora2Html::Tag::Jisage
- Defined in:
- lib/aozora2html/tag/jisage.rb
Overview
字下げ用
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(parser, width) ⇒ Jisage
constructor
A new instance of Jisage.
- #to_s ⇒ Object
Methods inherited from Block
Methods inherited from Aozora2Html::Tag
#char_type, #inspect, #syntax_error
Constructor Details
#initialize(parser, width) ⇒ Jisage
Returns a new instance of Jisage.
7 8 9 10 |
# File 'lib/aozora2html/tag/jisage.rb', line 7 def initialize(parser, width) @width = width super end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/aozora2html/tag/jisage.rb', line 12 def to_s "<div class=\"jisage_#{@width}\" style=\"margin-left: #{@width}em\">" end |