Class: Irelia::Divider::Component

Inherits:
Component
  • Object
show all
Defined in:
app/components/irelia/divider/component.rb

Instance Method Summary collapse

Methods inherited from 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

#variantsObject



4
5
6
7
8
9
# File 'app/components/irelia/divider/component.rb', line 4

def variants
  class_names(
    "irelia-divider",
    "irelia-divider--default": variant == :default
  )
end