Class: BruteCLI::BufferOutput::Error
- Inherits:
-
Object
- Object
- BruteCLI::BufferOutput::Error
- Defined in:
- lib/brute_cli/buffer_output/error.rb
Overview
Renderable error badge with pretty-printed message.
puts BufferOutput::Error.new(err)
# => "✖ ERROR"
# => "\"Something went wrong\""
Instance Method Summary collapse
-
#initialize(err) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(err) ⇒ Error
Returns a new instance of Error.
16 17 18 |
# File 'lib/brute_cli/buffer_output/error.rb', line 16 def initialize(err) @err = err end |