Class: TurboFlash::Configuration
- Inherits:
-
Object
- Object
- TurboFlash::Configuration
- Defined in:
- lib/turbo_flash/configuration.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#clear_unless_flashed ⇒ Object
Returns the value of attribute clear_unless_flashed.
-
#inherit_flashes ⇒ Object
Returns the value of attribute inherit_flashes.
-
#key ⇒ Object
Returns the value of attribute key.
-
#partial ⇒ Object
Returns the value of attribute partial.
-
#target ⇒ Object
Returns the value of attribute target.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #clear_target_unless_flashed? ⇒ Boolean
- #inherit_flashes? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 15 |
# File 'lib/turbo_flash/configuration.rb', line 7 def initialize @target = 'flash' @action = :update @partial = 'shared/flash' @key = :role @value = :message @clear_target_unless_flashed = true @inherit_flashes = true end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
5 6 7 |
# File 'lib/turbo_flash/configuration.rb', line 5 def action @action end |
#clear_unless_flashed ⇒ Object
Returns the value of attribute clear_unless_flashed.
5 6 7 |
# File 'lib/turbo_flash/configuration.rb', line 5 def clear_unless_flashed @clear_unless_flashed end |
#inherit_flashes ⇒ Object
Returns the value of attribute inherit_flashes.
5 6 7 |
# File 'lib/turbo_flash/configuration.rb', line 5 def inherit_flashes @inherit_flashes end |
#key ⇒ Object
Returns the value of attribute key.
5 6 7 |
# File 'lib/turbo_flash/configuration.rb', line 5 def key @key end |
#partial ⇒ Object
Returns the value of attribute partial.
5 6 7 |
# File 'lib/turbo_flash/configuration.rb', line 5 def partial @partial end |
#target ⇒ Object
Returns the value of attribute target.
5 6 7 |
# File 'lib/turbo_flash/configuration.rb', line 5 def target @target end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/turbo_flash/configuration.rb', line 5 def value @value end |
Instance Method Details
#clear_target_unless_flashed? ⇒ Boolean
21 22 23 |
# File 'lib/turbo_flash/configuration.rb', line 21 def clear_target_unless_flashed? @clear_target_unless_flashed end |
#inherit_flashes? ⇒ Boolean
17 18 19 |
# File 'lib/turbo_flash/configuration.rb', line 17 def inherit_flashes? @inherit_flashes end |