Class: FlashMessagesHelper::Configuration
- Inherits:
-
Object
- Object
- FlashMessagesHelper::Configuration
- Defined in:
- lib/flash_messages_helper.rb
Instance Attribute Summary collapse
-
#css_class ⇒ Object
Returns the value of attribute css_class.
-
#dom_id ⇒ Object
Returns the value of attribute dom_id.
-
#wrapper ⇒ Object
Returns the value of attribute wrapper.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 |
# File 'lib/flash_messages_helper.rb', line 17 def initialize @css_class = lambda { |key| "#{key}" } @dom_id = lambda { |key| "flash-#{key}" } @wrapper = :div end |
Instance Attribute Details
#css_class ⇒ Object
Returns the value of attribute css_class.
16 17 18 |
# File 'lib/flash_messages_helper.rb', line 16 def css_class @css_class end |
#dom_id ⇒ Object
Returns the value of attribute dom_id.
16 17 18 |
# File 'lib/flash_messages_helper.rb', line 16 def dom_id @dom_id end |
#wrapper ⇒ Object
Returns the value of attribute wrapper.
16 17 18 |
# File 'lib/flash_messages_helper.rb', line 16 def wrapper @wrapper end |