Files

Less::Node::Entity

Attributes

parent[RW]

Public Class Methods

new(value, parent = nil) click to toggle source
    # File lib/less/engine/nodes/entity.rb, line 28
28:       def initialize value, parent = nil
29:         super value
30:         @parent = parent
31:       end

Public Instance Methods

inspect() click to toggle source
    # File lib/less/engine/nodes/entity.rb, line 51
51:       def inspect;  to_s  end
path(node = self) click to toggle source

Returns the path from any given node, to the root

  ex: ['color', 'p', '#header', 'body', '*']
    # File lib/less/engine/nodes/entity.rb, line 38
38:       def path node = self
39:         path = []
40:         while node do
41:           path << node
42:           node = node.parent
43:         end
44:         path
45:       end
root() click to toggle source
    # File lib/less/engine/nodes/entity.rb, line 47
47:       def root
48:         path.last
49:       end
to_css() click to toggle source
    # File lib/less/engine/nodes/entity.rb, line 52
52:       def to_css;   to_s  end
to_s() click to toggle source
    # File lib/less/engine/nodes/entity.rb, line 53
53:       def to_s;     super end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.