class Less::Parser::Tree
Abstract LessCSS syntax tree Less
. Mainly used to emit CSS
Public Class Methods
Source
# File lib/less/parser.rb, line 91 def initialize(tree) @tree = tree end
Create a tree from a native javascript object. @param [V8::Object] tree the native less.js tree
Public Instance Methods
Source
# File lib/less/parser.rb, line 99 def to_css(options = {}) Less::JavaScript.exec { @tree.toCSS(options) } end
Serialize this tree into CSS. By default this will be in pretty-printed form. @param [Hash] opts modifications to the output @option opts [Boolean] :compress minify output instead of pretty-printing