# File lib/less/engine/nodes/entity.rb, line 51 def inspect; to_s end
Returns the path from any given node, to the root
ex: ['color', 'p', '#header', 'body', '*']
# File lib/less/engine/nodes/entity.rb, line 38 def path node = self path = [] while node do path << node node = node.parent end path end
# File lib/less/engine/nodes/entity.rb, line 47 def root path.last end
Generated with the Darkfish Rdoc Generator 2.