Class: HTML::InlineTag
Overview
This represents an HTML inline element.
Direct Known Subclasses
Instance Method Summary collapse
-
#can_contain(tag, parent) ⇒ Object
Inlines can only contain other inlines.
- #is_inline_element ⇒ Object
Methods inherited from Tag
add_tag, #can_ignore_whitespace, #can_omit_end_tag, #initialize, #is_block_element, #is_empty_element, #name, named
Constructor Details
This class inherits a constructor from HTML::Tag
Instance Method Details
#can_contain(tag, parent) ⇒ Object
Inlines can only contain other inlines.
63 64 65 |
# File 'lib/web/htmltools/tags.rb', line 63 def can_contain(tag, parent) Tag.named(tag).is_inline_element end |
#is_inline_element ⇒ Object
60 |
# File 'lib/web/htmltools/tags.rb', line 60 def is_inline_element; true; end |