Class: Irelia::Card::Component
- Inherits:
-
Irelia::Component
- Object
- ViewComponentContrib::Base
- Irelia::Component
- Irelia::Card::Component
- Includes:
- Options::Width
- Defined in:
- app/components/irelia/card/component.rb
Instance Method Summary collapse
Methods included from Options::Width
Methods inherited from Irelia::Component
#add_css_classes, after_initialize, #html_options, inherited, #initialize, run_after_initialize_hooks
Constructor Details
This class inherits a constructor from Irelia::Component
Instance Method Details
#variants ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/components/irelia/card/component.rb', line 8 def variants class_names( "irelia-card", "irelia-card--default": variant == :default, "irelia-card--no-padding": padding == false ) end |