Module: Less::Selector1

Defined in:
lib/less/engine/parser.rb

Instance Method Summary collapse

Instance Method Details

#path(env) ⇒ Object



940
941
942
943
944
# File 'lib/less/engine/parser.rb', line 940

def path env
  elements.map do |e|
    Node::Element.new(e.element.text_value, e.select.text_value)
  end
end

#tree(env) ⇒ Object



932
933
934
935
936
937
938
# File 'lib/less/engine/parser.rb', line 932

def tree env
  log "\n% element: #{text_value}\n"
  elements.inject(env) do |node, e|
    node << Node::Element.new(e.element.text_value, e.select.text_value)
    node.last
  end
end