Module: PartialsFx::Component::Styles::ClassMethods
- Included in:
- PartialsFx::Component
- Defined in:
- lib/partials_fx/component/styles.rb
Instance Method Summary collapse
Instance Method Details
#component_styles ⇒ Object
11 12 13 14 15 16 |
# File 'lib/partials_fx/component/styles.rb', line 11 def component_styles return @component_styles if defined?(@component_styles) return nil unless @styles_block generate_component_styles end |
#register_styles ⇒ Object
18 19 20 21 22 |
# File 'lib/partials_fx/component/styles.rb', line 18 def register_styles return unless @styles_block Stylist.register(self) end |
#styles(&block) ⇒ Object
5 6 7 8 9 |
# File 'lib/partials_fx/component/styles.rb', line 5 def styles(&block) @styles_block = block register_styles_if_rails_loaded end |