Class: Faalis::Dashboard::Helpers::BoxHelpers::Tabs::Tab
- Inherits:
-
Object
- Object
- Faalis::Dashboard::Helpers::BoxHelpers::Tabs::Tab
- Defined in:
- lib/faalis/dashboard/helpers/box_helpers.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#id ⇒ Object
Returns the value of attribute id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#title_icon ⇒ Object
readonly
Returns the value of attribute title_icon.
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(title, **options) ⇒ Tab
constructor
A new instance of Tab.
Constructor Details
#initialize(title, **options) ⇒ Tab
Returns a new instance of Tab.
30 31 32 33 34 35 |
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 30 def initialize(title, **) @title = title @active = false @active = true if [:active] == true @title_icon = [:title_icon] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
28 29 30 |
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 28 def content @content end |
#id ⇒ Object
Returns the value of attribute id.
28 29 30 |
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 28 def id @id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
27 28 29 |
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 27 def title @title end |
#title_icon ⇒ Object (readonly)
Returns the value of attribute title_icon.
27 28 29 |
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 27 def title_icon @title_icon end |
Instance Method Details
#active? ⇒ Boolean
37 38 39 |
# File 'lib/faalis/dashboard/helpers/box_helpers.rb', line 37 def active? @active end |