Class: Aozora2Html::Tag::Keigakomi
- Inherits:
-
Block
- Object
- Aozora2Html::Tag
- Block
- Aozora2Html::Tag::Keigakomi
- Includes:
- Multiline
- Defined in:
- lib/aozora2html/tag/keigakomi.rb
Overview
罫囲み用
Instance Method Summary collapse
-
#initialize(parser, size = 1) ⇒ Keigakomi
constructor
A new instance of Keigakomi.
- #to_s ⇒ Object
Methods inherited from Block
Methods inherited from Aozora2Html::Tag
#char_type, #inspect, #syntax_error
Constructor Details
#initialize(parser, size = 1) ⇒ Keigakomi
Returns a new instance of Keigakomi.
9 10 11 12 |
# File 'lib/aozora2html/tag/keigakomi.rb', line 9 def initialize(parser, size = 1) @size = size super end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/aozora2html/tag/keigakomi.rb', line 14 def to_s "<div class=\"keigakomi\" style=\"border: solid #{@size}px\">" end |