Class: Prefixr

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

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Prefixr

Returns a new instance of Prefixr.



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/prefixr.rb', line 5

def initialize(args)
	@url = URI.parse "http://prefixr.com/api/index.php"
	@input = args[0]
	@output = args[1]
	unless @input
		puts "\n$ prefixr [input file] [output file]"
		puts "- If no output file is specified input file will be overwritten."
		puts "- If a direcotry is passed in as the input file, all of the .css file inside the directory will be overwritten."
		return
	end
	run
end