Class: Co2::Cli
- Inherits:
-
Object
- Object
- Co2::Cli
- Defined in:
- lib/co2/cli.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(arguments, output, errors) ⇒ Cli
constructor
A new instance of Cli.
- #run ⇒ Object
Constructor Details
#initialize(arguments, output, errors) ⇒ Cli
Returns a new instance of Cli.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/co2/cli.rb', line 11 def initialize(arguments, output, errors) @arguments = arguments @output = output @errors = errors @options = { :config => File.('../../../vendor/assets/stylesheets/co2.scss', __FILE__), :directory => '.' } end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/co2/cli.rb', line 9 def @options end |
Instance Method Details
#run ⇒ Object
22 23 24 25 26 |
# File 'lib/co2/cli.rb', line 22 def run if and valid? process! end end |