Exception: LinterError
- Inherits:
-
StandardError
- Object
- StandardError
- LinterError
- Defined in:
- lib/B4U/error.rb
Instance Attribute Summary collapse
-
#console_output ⇒ Object
readonly
Returns the value of attribute console_output.
-
#linter ⇒ Object
readonly
Returns the value of attribute linter.
Instance Method Summary collapse
-
#initialize(linter:, console_output:, msg: 'Linter error') ⇒ LinterError
constructor
A new instance of LinterError.
Constructor Details
#initialize(linter:, console_output:, msg: 'Linter error') ⇒ LinterError
Returns a new instance of LinterError.
3 4 5 6 7 |
# File 'lib/B4U/error.rb', line 3 def initialize(linter:, console_output:, msg: 'Linter error') @linter = linter @console_output = console_output super(msg) end |
Instance Attribute Details
#console_output ⇒ Object (readonly)
Returns the value of attribute console_output.
2 3 4 |
# File 'lib/B4U/error.rb', line 2 def console_output @console_output end |
#linter ⇒ Object (readonly)
Returns the value of attribute linter.
2 3 4 |
# File 'lib/B4U/error.rb', line 2 def linter @linter end |