Class: Aozora2Html::Tag::Block

Inherits:
Aozora2Html::Tag show all
Defined in:
lib/aozora2html/tag/block.rb

Overview

ブロックタグ用class

各Tagクラスはこれを継承する

Instance Method Summary collapse

Methods inherited from Aozora2Html::Tag

#char_type, #inspect, #syntax_error

Constructor Details

#initialize(parser, *_args) ⇒ Block

Returns a new instance of Block.



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

def initialize(parser, *_args)
  super()

  syntax_error unless parser.block_allowed_context?
end

Instance Method Details

#close_tagObject

必要に基づきmethod overrideする



16
17
18
# File 'lib/aozora2html/tag/block.rb', line 16

def close_tag
  '</div>'
end