Method: Less::Node::Element#initialize

Defined in:
lib/less/engine/nodes/element.rb

#initialize(name = "", selector = '') ⇒ Element

Returns a new instance of Element.



17
18
19
20
21
22
23
# File 'lib/less/engine/nodes/element.rb', line 17

def initialize name = "", selector = ''
  super name

  @partial = false
  @rules = [] # Holds all the nodes under this element's hierarchy
  @selector = Selector[selector.strip].new  # descendant | child | adjacent
end