Class: HTML::BlockTag

Inherits:
Tag show all
Defined in:
lib/web/htmltools/tags.rb

Overview

This represents an HTML block element.

Instance Method Summary collapse

Methods inherited from Tag

add_tag, #can_ignore_whitespace, #can_omit_end_tag, #initialize, #is_empty_element, #is_inline_element, #name, named

Constructor Details

This class inherits a constructor from HTML::Tag

Instance Method Details

#can_contain(tag, parent) ⇒ Object

Blocks can contain anything, so return true.



55
# File 'lib/web/htmltools/tags.rb', line 55

def can_contain(tag, parent); true; end

#is_block_elementObject



52
# File 'lib/web/htmltools/tags.rb', line 52

def is_block_element; true; end