Module: Jekyll::ContentBlocks::ContentBlockTag
- Included in:
- Tags::ContentBlock, Tags::ContentFor, Tags::IfHasContent, Tags::IfNotHasContent
- Defined in:
- lib/jekyll/content_blocks/content_block_tag.rb
Instance Attribute Summary collapse
-
#content_block_name ⇒ Object
Returns the value of attribute content_block_name.
-
#content_block_options ⇒ Object
Returns the value of attribute content_block_options.
Instance Method Summary collapse
Instance Attribute Details
#content_block_name ⇒ Object
Returns the value of attribute content_block_name.
4 5 6 |
# File 'lib/jekyll/content_blocks/content_block_tag.rb', line 4 def content_block_name @content_block_name end |
#content_block_options ⇒ Object
Returns the value of attribute content_block_options.
5 6 7 |
# File 'lib/jekyll/content_blocks/content_block_tag.rb', line 5 def @content_block_options end |
Instance Method Details
#initialize(tag_name, markup, tokens) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/jekyll/content_blocks/content_block_tag.rb', line 7 def initialize(tag_name, markup, tokens) super (markup) if content_block_name == '' raise SyntaxError.new("No block name given in #{tag_name} tag") end end |