Module: Playbook::LineHeight
- Included in:
- KitBase
- Defined in:
- lib/playbook/line_height.rb
Constant Summary collapse
- LINE_HEIGHT_VALUES =
%w[tightest tighter tight normal loose looser loosest].freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/playbook/line_height.rb', line 5 def self.included(base) base.prop :line_height end |
Instance Method Details
#line_height_options ⇒ Object
18 19 20 |
# File 'lib/playbook/line_height.rb', line 18 def { line_height: "line_height" } end |
#line_height_props ⇒ Object
11 12 13 14 15 16 |
# File 'lib/playbook/line_height.rb', line 11 def line_height_props value = line_height return nil unless value "line_height_#{value}" if LINE_HEIGHT_VALUES.include?(value) end |
#line_height_values ⇒ Object
22 23 24 |
# File 'lib/playbook/line_height.rb', line 22 def line_height_values LINE_HEIGHT_VALUES end |