Class: Aozora2Html::Tag::Chitsuki

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

Overview

地付き記法

直接使わない。実際に使うのはサブクラス

Direct Known Subclasses

MultilineChitsuki, OnelineChitsuki

Instance Method Summary collapse

Methods inherited from Block

#close_tag

Methods inherited from Aozora2Html::Tag

#char_type, #inspect, #syntax_error

Constructor Details

#initialize(parser, length) ⇒ Chitsuki

Returns a new instance of Chitsuki.



9
10
11
12
# File 'lib/aozora2html/tag/chitsuki.rb', line 9

def initialize(parser, length)
  @length = length
  super
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/aozora2html/tag/chitsuki.rb', line 14

def to_s
  "<div class=\"chitsuki_#{@length}\" style=\"text-align:right; margin-right: #{@length}em\">"
end