class DTK::Client::Violation::Fix::Result::Error

Public Class Methods

new(opts = {}) click to toggle source
Calls superclass method
# File lib/violation/fix/result/error.rb, line 22
def initialize(opts = {})
  super(:error)
  @error_msg = opts[:error_msg]
end

Public Instance Methods

render_error_msg() click to toggle source
# File lib/violation/fix/result/error.rb, line 27
def render_error_msg
  OsUtil.print(@error_msg, :red) if @error_msg
end