Method: Less::Command#initialize

Defined in:
lib/less/command.rb

#initialize(options) ⇒ Command

Returns a new instance of Command.



5
6
7
8
9
10
# File 'lib/less/command.rb', line 5

def initialize options
  $verbose = options[:debug]
  @source = options[:source]
  @destination = (options[:destination] || options[:source]).gsub /\.(less|lss)/, '.css'
  @options = options
end