Class: Dsu::Views::Shared::Warning

Inherits:
Message
  • Object
show all
Defined in:
lib/dsu/views/shared/warning.rb

Constant Summary

Constants inherited from Message

Message::MESSAGE_TYPES

Instance Method Summary collapse

Methods inherited from Message

#render, #to_s

Methods included from Support::ColorThemable

apply_theme, #prompt_with_options

Constructor Details

#initialize(messages:, header: nil, options: {}) ⇒ Warning

Returns a new instance of Warning.



9
10
11
12
13
# File 'lib/dsu/views/shared/warning.rb', line 9

def initialize(messages:, header: nil, options: {})
  options = { header: header, output_stream: $stdout }.merge(options)

  super(messages: messages, message_type: :warning, options: options)
end