Exception: Fisk::Errors::SuboptimalPerformance
- Defined in:
- lib/fisk/errors.rb
Overview
Raised when the performance check is enabled, and suboptimal instructions are found.
Instance Attribute Summary collapse
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(warnings) ⇒ SuboptimalPerformance
constructor
A new instance of SuboptimalPerformance.
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
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
42 43 44 |
# File 'lib/fisk/errors.rb', line 42 def warnings @warnings end |