Class: CSSensible::Options
- Inherits:
-
Object
- Object
- CSSensible::Options
- Defined in:
- lib/cssensible/options.rb
Constant Summary collapse
- DEFAULT_LINE_HEIGHT =
Default line-height.
EmValue.new(1.0)
Instance Attribute Summary collapse
-
#font_sizes_to_include ⇒ Object
readonly
Returns the value of attribute font_sizes_to_include.
-
#line_height ⇒ Object
readonly
Returns the value of attribute line_height.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(argv) ⇒ Options
Returns a new instance of Options.
14 15 16 17 18 19 |
# File 'lib/cssensible/options.rb', line 14 def initialize(argv) @font_sizes_to_include = [] @line_height = DEFAULT_LINE_HEIGHT parse(argv) argv.each { |arg| @font_sizes_to_include << arg.to_i } end |
Instance Attribute Details
#font_sizes_to_include ⇒ Object (readonly)
Returns the value of attribute font_sizes_to_include.
11 12 13 |
# File 'lib/cssensible/options.rb', line 11 def font_sizes_to_include @font_sizes_to_include end |
#line_height ⇒ Object (readonly)
Returns the value of attribute line_height.
12 13 14 |
# File 'lib/cssensible/options.rb', line 12 def line_height @line_height end |