Class: HtmlAide::NullElement
- Defined in:
- lib/html_aide/null_element.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize ⇒ NullElement
constructor
A new instance of NullElement.
Methods inherited from Element
#attributes, #children, #name, #text, #to_s
Constructor Details
#initialize ⇒ NullElement
Returns a new instance of NullElement.
4 5 6 7 |
# File 'lib/html_aide/null_element.rb', line 4 def initialize node = Struct.new(:name, :attributes, :nodes).new('Null', {}, []) super(node) end |