Module: RubyUI::Toast
- Defined in:
- lib/ruby_ui/toast/toast.rb
Constant Summary collapse
- FLASH_VARIANTS =
{ "notice" => :info, "alert" => :warning, "success" => :success, "error" => :error, "warning" => :warning, "info" => :info }.freeze
Class Method Summary collapse
Class Method Details
.flash_variant(key) ⇒ Object
14 15 16 |
# File 'lib/ruby_ui/toast/toast.rb', line 14 def self.flash_variant(key) FLASH_VARIANTS[key.to_s] || :default end |