Module: Irelia::Options::Flex::Grow
- Included in:
- Flex::Component, Navbar::Section::Component, Sidebar::Section::Component
- Defined in:
- lib/irelia/options/flex/grow.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/irelia/options/flex/grow.rb', line 5 def self.included(base) base.class_eval do option :grow, default: -> { false }, in: [ true, false ] after_initialize do add_css_classes( class_names( "irelia-grow": grow ) ) end end end |