Exception: Fisk::Errors::SuboptimalPerformance

Inherits:
Error
  • Object
show all
Defined in:
lib/fisk/errors.rb

Overview

Raised when the performance check is enabled, and suboptimal instructions are found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(warnings) ⇒ SuboptimalPerformance

Returns a new instance of SuboptimalPerformance.



44
45
46
47
# File 'lib/fisk/errors.rb', line 44

def initialize(warnings)
  super "Suboptimal instructions found!"
  @warnings = warnings
end

Instance Attribute Details

#warningsObject (readonly)

Returns the value of attribute warnings.



42
43
44
# File 'lib/fisk/errors.rb', line 42

def warnings
  @warnings
end