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