Class: Twitter::Bootstrap::Components::V4::Flash
- Defined in:
- app/components/twitter/bootstrap/components/v4/flash.rb
Class Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Twitter::Bootstrap::Components::V4::Base
Class Method Details
.map_message_type_to_context(message_type) ⇒ Object
6 7 8 |
# File 'app/components/twitter/bootstrap/components/v4/flash.rb', line 6 def self.() { success: "success", error: "danger", alert: "warning", notice: "info" }[.to_sym] || .to_s end |