Class: Csscss::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ CLI

Returns a new instance of CLI.



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/csscss/cli.rb', line 3

def initialize(argv)
  @argv               = argv
  @verbose            = false
  @color              = !windows_1_9
  @minimum            = 3
  @compass            = false
  @ignored_properties = []
  @ignored_selectors  = []
  @match_shorthand    = true
  @ignore_sass_mixins = false
end

Class Method Details

.run(argv) ⇒ Object



199
200
201
# File 'lib/csscss/cli.rb', line 199

def run(argv)
  new(argv).run
end

Instance Method Details

#runObject



15
16
17
18
# File 'lib/csscss/cli.rb', line 15

def run
  parse(@argv)
  execute
end