Exception: Freshen::UnsupportedKernel
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Freshen::UnsupportedKernel
- Defined in:
- lib/freshen/errors.rb
Overview
A RuntimeError subclass for when the current system’s kernel is unsupported.
Instance Attribute Summary collapse
-
#kernel ⇒ Object
readonly
Returns the value of attribute kernel.
Instance Method Summary collapse
-
#initialize(kernel) ⇒ UnsupportedKernel
constructor
A new instance of UnsupportedKernel.
- #to_s ⇒ Object
Constructor Details
#initialize(kernel) ⇒ UnsupportedKernel
Returns a new instance of UnsupportedKernel.
12 13 14 |
# File 'lib/freshen/errors.rb', line 12 def initialize(kernel) @kernel = kernel end |
Instance Attribute Details
#kernel ⇒ Object (readonly)
Returns the value of attribute kernel.
10 11 12 |
# File 'lib/freshen/errors.rb', line 10 def kernel @kernel end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/freshen/errors.rb', line 16 def to_s "Freshen doesn't support a #{@kernel} kernel" end |