Class: Aozora2Html::Tag::Jisage

Inherits:
Indent show all
Defined in:
lib/aozora2html/tag/jisage.rb

Overview

字下げ用

Direct Known Subclasses

MultilineJisage, OnelineJisage

Instance Method Summary collapse

Methods inherited from Block

#close_tag

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_sObject



12
13
14
# File 'lib/aozora2html/tag/jisage.rb', line 12

def to_s
  "<div class=\"jisage_#{@width}\" style=\"margin-left: #{@width}em\">"
end