Class: StackableFlash::FlashStack
- Inherits:
-
Array
- Object
- Array
- StackableFlash::FlashStack
- Defined in:
- lib/stackable_flash/flash_stack.rb
Instance Method Summary collapse
Instance Method Details
#stack ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/stackable_flash/flash_stack.rb', line 26 def stack if StackableFlash.stacking # Format the stacked flashes according to stack_with_proc lambda StackableFlash::Config.config[:stack_with_proc].call(self) else # All StackableFlash functionality is completely bypassed self end end |