class Nginxtra::Error::Base
Base
error with all the base functionality.
Public Class Methods
new(message, options = nil)
click to toggle source
Calls superclass method
# File lib/nginxtra/error.rb, line 5 def initialize(message, options = nil) @options = options super(message) end
Public Instance Methods
output(thor)
click to toggle source
# File lib/nginxtra/error.rb, line 10 def output(thor) options = @options || { header: message } Nginxtra::Error.print_error thor, options end