Sha256: 2596ec300fbc15548b2892623fcaa5e247a32e2e3f991435c620903b9c13afbd

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 Bytes

Contents

module BeautifulCss
  module Exec
    class Css

      def initialize args
        @args = args
      end


      def run
        file = File.open(@args.first, "rb")
        input = file.read
        file.close
        clean = BeautifulCss::Engine.new(input).render
        file = File.open(@args.first, "wb")
        file.puts clean
        file.close
      end

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
beautiful-css-0.0.6 lib/beautiful-css/exec.rb
beautiful-css-0.0.5 lib/beautiful-css/exec.rb
beautiful-css-0.0.4 lib/beautiful-css/exec.rb
beautiful-css-0.0.3 lib/beautiful-css/exec.rb
beautiful-css-0.0.1 lib/beautiful-css/exec.rb