Class: Jekyll::Tags::IfNotHasContent

Inherits:
Liquid::Block
  • Object
show all
Includes:
ContentBlocks::ContentBlockTag
Defined in:
lib/jekyll/tags/if_not_has_content.rb

Instance Attribute Summary

Attributes included from ContentBlocks::ContentBlockTag

#content_block_name, #content_block_options

Instance Method Summary collapse

Methods included from ContentBlocks::ContentBlockTag

#initialize

Instance Method Details

#render(context) ⇒ Object



7
8
9
10
11
# File 'lib/jekyll/tags/if_not_has_content.rb', line 7

def render(context)
  unless block_has_content?(context)
    render_block(context)
  end
end

#render_blockObject



5
# File 'lib/jekyll/tags/if_not_has_content.rb', line 5

alias_method :render_block, :render