Class: Less2Sass::Exec::Conversion
- Defined in:
- lib/less2sass/exec/conversion.rb
Overview
TODO: rethink the concept, rather use 2 classes - Less2Sass and SassToLess instead of one (Conversion)
Instance Attribute Summary collapse
-
#conversion ⇒ Object
readonly
Returns the value of attribute conversion.
Instance Method Summary collapse
-
#initialize(args, conversion) ⇒ Conversion
constructor
A new instance of Conversion.
-
#set_opts(opts) ⇒ Object
Tells optparse how to parse the arguments.
Methods inherited from Base
Constructor Details
#initialize(args, conversion) ⇒ Conversion
10 11 12 13 14 |
# File 'lib/less2sass/exec/conversion.rb', line 10 def initialize(args, conversion) super(args) @options = {} @conversion = conversion end |
Instance Attribute Details
#conversion ⇒ Object (readonly)
Returns the value of attribute conversion.
8 9 10 |
# File 'lib/less2sass/exec/conversion.rb', line 8 def conversion @conversion end |
Instance Method Details
#set_opts(opts) ⇒ Object
Tells optparse how to parse the arguments.
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/less2sass/exec/conversion.rb', line 19 def set_opts(opts) opts. = <<END Usage: #{conversion} [options] [INPUT] [OUTPUT] Description: #{} END (opts) input_and_output(opts) miscellaneous(opts) end |