Class: Jav::Dashboards::DividerComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Jav::Dashboards::DividerComponent
- Defined in:
- app/components/jav/dashboards/divider_component.rb
Instance Attribute Summary collapse
-
#divider ⇒ Object
readonly
Returns the value of attribute divider.
Instance Method Summary collapse
-
#initialize(divider: nil) ⇒ DividerComponent
constructor
A new instance of DividerComponent.
- #invisible? ⇒ Boolean
- #render? ⇒ Boolean
Constructor Details
#initialize(divider: nil) ⇒ DividerComponent
Returns a new instance of DividerComponent.
8 9 10 11 |
# File 'app/components/jav/dashboards/divider_component.rb', line 8 def initialize(divider: nil) super() @divider = divider end |
Instance Attribute Details
#divider ⇒ Object (readonly)
Returns the value of attribute divider.
4 5 6 |
# File 'app/components/jav/dashboards/divider_component.rb', line 4 def divider @divider end |
Instance Method Details
#invisible? ⇒ Boolean
17 18 19 |
# File 'app/components/jav/dashboards/divider_component.rb', line 17 def invisible? @divider.invisible end |
#render? ⇒ Boolean
13 14 15 |
# File 'app/components/jav/dashboards/divider_component.rb', line 13 def render? @divider.present? end |