Permalink
Browse files

refactor: css2less.rb file is a module only + create script example file

  • Loading branch information...
1 parent 48d0fb4 commit a34a07e817ab66b1a2870c729567fa79622c813f @thomaspierson committed Jan 4, 2012
Showing with 9 additions and 7 deletions.
  1. +0 −7 css2less.rb
  2. +9 −0 script-example.rb
View
7 css2less.rb 100755 → 100644
@@ -1,4 +1,3 @@
-#!/usr/bin/ruby
module Css2Less
@@ -51,9 +50,3 @@ def print(tree=nil, indent=0)
end
end
-
-css = File.read(ARGV[0])
-
-converter = Css2Less::Converter.new(css)
-converter.generate
-converter.print
View
@@ -0,0 +1,9 @@
+#!/usr/bin/ruby
+
+require 'css2less'
+
+css = File.read(ARGV[0])
+
+converter = Css2Less::Converter.new(css)
+converter.generate
+converter.print

0 comments on commit a34a07e

Please sign in to comment.