Class: RailsAccordion::Configuration
- Inherits:
-
Object
- Object
- RailsAccordion::Configuration
- Defined in:
- lib/rails_accordion/configuration.rb
Instance Attribute Summary collapse
-
#animation_duration ⇒ Object
Returns the value of attribute animation_duration.
-
#default_state ⇒ Object
Returns the value of attribute default_state.
-
#multiple_open ⇒ Object
Returns the value of attribute multiple_open.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/rails_accordion/configuration.rb', line 5 def initialize @default_state = :all_closed @animation_duration = 300 @multiple_open = false end |
Instance Attribute Details
#animation_duration ⇒ Object
Returns the value of attribute animation_duration.
3 4 5 |
# File 'lib/rails_accordion/configuration.rb', line 3 def animation_duration @animation_duration end |
#default_state ⇒ Object
Returns the value of attribute default_state.
3 4 5 |
# File 'lib/rails_accordion/configuration.rb', line 3 def default_state @default_state end |
#multiple_open ⇒ Object
Returns the value of attribute multiple_open.
3 4 5 |
# File 'lib/rails_accordion/configuration.rb', line 3 def multiple_open @multiple_open end |