Class: Less::Node::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/sass/less.rb

Instance Method Summary collapse

Instance Method Details

#to_sass_tree



295
296
297
298
299
300
301
302
303
304
# File 'lib/sass/less.rb', line 295

def to_sass_tree
  if @declaration
    return if hide_in_sass
    node = Sass::Tree::VariableNode.new(self, @value.to_sass_tree, false)
    node.line = self.src_line
    node
  else
    Sass::Script::Variable.new(self)
  end
end