Class: HTML::BlockTag
Overview
This represents an HTML block element.
Instance Method Summary collapse
-
#can_contain(tag, parent) ⇒ Object
Blocks can contain anything, so return true.
- #is_block_element ⇒ Object
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.
56 |
# File 'lib/html/tags.rb', line 56 def can_contain(tag, parent); true; end |
#is_block_element ⇒ Object
53 |
# File 'lib/html/tags.rb', line 53 def is_block_element; true; end |