Method: Less::Node::Element#descend
- Defined in:
- lib/less/engine/nodes/element.rb
#descend(selector, element) ⇒ Object
Same as above, except with a specific selector TODO: clean this up or implement it differently
62 63 64 65 66 67 68 69 70 71 |
# File 'lib/less/engine/nodes/element.rb', line 62 def descend selector, element if selector.is_a? Child s = self[element].selector self[element] if s.is_a? Child or s.is_a? Descendant elsif selector.is_a? Descendant self[element] else self[element] if self[element].selector.class == selector.class end end |