Class: HotFlash::Configuration
- Inherits:
-
Object
- Object
- HotFlash::Configuration
- Defined in:
- lib/hot_flash.rb
Instance Attribute Summary collapse
-
#flash_method ⇒ Object
Returns the value of attribute flash_method.
-
#turbo_action ⇒ Object
Returns the value of attribute turbo_action.
-
#turbo_target ⇒ Object
Returns the value of attribute turbo_target.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 |
# File 'lib/hot_flash.rb', line 11 def initialize @turbo_action = "replace" @turbo_target = "#flashes" @flash_method = :render_flash end |
Instance Attribute Details
#flash_method ⇒ Object
Returns the value of attribute flash_method.
9 10 11 |
# File 'lib/hot_flash.rb', line 9 def flash_method @flash_method end |
#turbo_action ⇒ Object
Returns the value of attribute turbo_action.
7 8 9 |
# File 'lib/hot_flash.rb', line 7 def turbo_action @turbo_action end |
#turbo_target ⇒ Object
Returns the value of attribute turbo_target.
8 9 10 |
# File 'lib/hot_flash.rb', line 8 def turbo_target @turbo_target end |