Class: HtmlAide::NullElement

Inherits:
Element
  • Object
show all
Defined in:
lib/html_aide/null_element.rb

Instance Attribute Summary

Attributes inherited from Element

#proxy

Instance Method Summary collapse

Methods inherited from Element

#attributes, #children, #name, #text, #to_s

Constructor Details

#initializeNullElement

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