class Infoboxer::Tree::HTMLTag
Represents HTML tag, surrounding some contents.
Attributes
tag[R]
Public Class Methods
new(tag, attrs, children = Nodes.new)
click to toggle source
Calls superclass method
Infoboxer::Tree::Compound::new
# File lib/infoboxer/tree/html.rb, line 15 def initialize(tag, attrs, children = Nodes.new) super(children, **attrs) @tag = tag end
Public Instance Methods
empty?()
click to toggle source
@private Internal, used by {Parser}.
# File lib/infoboxer/tree/html.rb, line 27 def empty? # even empty tag, for ex., <br>, should not be dropped! false end
Private Instance Methods
descr()
click to toggle source
# File lib/infoboxer/tree/html.rb, line 34 def descr "#{clean_class}:#{tag}(#{show_params})" end