Module: BulmaX::Shared::SpacingOptions
- Included in:
- BaseComponent
- Defined in:
- lib/bulma_x/shared/spacing_options.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VALID_SPACING_KEYS =
i[x y top right bottom left].freeze
- VALID_SPACING_VALUES =
((0..10).to_a + ['auto']).freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
16 |
# File 'lib/bulma_x/shared/spacing_options.rb', line 16 def self.included(base) = base.extend(ClassMethods) |
Instance Method Details
#spacing_classes ⇒ Object
18 19 20 21 22 23 |
# File 'lib/bulma_x/shared/spacing_options.rb', line 18 def spacing_classes [ *spacing_normalized(@margin, prefix: 'm'), *spacing_normalized(@padding, prefix: 'p') ] end |