Class: Keigakomi_tag

Inherits:
Aozora_tag show all
Includes:
Block_tag, 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, size = 1) ⇒ Keigakomi_tag

Returns a new instance of Keigakomi_tag.



238
239
240
241
# File 'lib/t2hs.rb', line 238

def initialize (parser, size = 1)
  @size = size
  super
end

Instance Method Details

#to_sObject



242
243
244
# File 'lib/t2hs.rb', line 242

def to_s
  "<div class=\"keigakomi\" style=\"border: solid #{@size}px\">"
end