Class Less::Node::Element
In: lib/less/engine/nodes/element.rb
Parent: Object

Element

div {…}

TODO: Look into making @rules its own hash-like class TODO: Look into whether selector should be child by default

Methods

<<   ==   []   class?   descend   each   elements   empty?   eql?   equiv?   first   group   id?   identifiers   inspect   last   leaf?   mixins   nearest   new   parameters   properties   root?   tag?   to_css   to_s   universal?   variables  

Included Modules

Enumerable Entity

Attributes

file  [RW] 
imported  [RW] 
name  [RW] 
rules  [RW] 
selector  [RW] 
set  [RW] 

Public Class methods

Public Instance methods

Add an arbitrary node to this element

Select a child element TODO: Implement full selector syntax & merge with descend()

Same as above, except with a specific selector TODO: clean this up or implement it differently

Traverse the whole tree, returning each leaf (recursive)

Group similar rulesets together This is horrible, horrible code, but it‘ll have to do until I find a proper way to do it.

Accessors for the different nodes in @rules

Find the nearest node in the hierarchy or raise a NameError

Top-most node?

Entry point for the css conversion

[Validate]