Exception: Freshen::UnsupportedKernel

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/freshen/errors.rb

Overview

A RuntimeError subclass for when the current system’s kernel is unsupported.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#kernelObject (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_sObject



16
17
18
# File 'lib/freshen/errors.rb', line 16

def to_s
  "Freshen doesn't support a #{@kernel} kernel"
end