Class: Chitsuki_tag

Inherits:
Indent_tag show all
Defined in:
lib/t2hs.rb

Direct Known Subclasses

Multiline_Chitsuki_tag, Oneline_Chitsuki_tag

Instance Method Summary collapse

Methods included from Block_tag

#close_tag

Methods inherited from Aozora_tag

#inspect, #syntax_error

Constructor Details

#initialize(parser, length) ⇒ Chitsuki_tag



341
342
343
344
# File 'lib/t2hs.rb', line 341

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

Instance Method Details

#to_sObject



345
346
347
# File 'lib/t2hs.rb', line 345

def to_s
  '<div class="chitsuki_' + @length + '" style="text-align:right; margin-right: ' + @length + 'em">'
end