Class: Jizume_tag

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

Instance Method Summary collapse

Methods included from Block_tag

#close_tag

Methods inherited from Aozora_tag

#inspect, #syntax_error

Constructor Details

#initialize(parser, width) ⇒ Jizume_tag

Returns a new instance of Jizume_tag.



227
228
229
230
# File 'lib/t2hs.rb', line 227

def initialize (parser, width)
  @w = width
  super
end

Instance Method Details

#to_sObject



231
232
233
# File 'lib/t2hs.rb', line 231

def to_s
  "<div class=\"jizume_#{@w}\" style=\"width: #{@w}em\">"
end