Class: HTML::BlockTag

Inherits:
Tag
  • Object
show all
Defined in:
lib/html/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.



56
# File 'lib/html/tags.rb', line 56

def can_contain(tag, parent); true; end

#is_block_elementObject



53
# File 'lib/html/tags.rb', line 53

def is_block_element; true; end