Module: Siba::KernelPlug

Included in:
Generator, Generator, Restore
Defined in:
lib/siba/siba_kernel.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.siba_kernelObject



28
29
30
# File 'lib/siba/siba_kernel.rb', line 28

def self.siba_kernel
  @siba_kernel ||= Siba::SibaKernel.new
end

.siba_kernel=(val) ⇒ Object

It is used in test to insert mock SibaKernel object



33
34
35
# File 'lib/siba/siba_kernel.rb', line 33

def self.siba_kernel=(val)
  @siba_kernel = val
end

Instance Method Details

#siba_kernelObject



24
25
26
# File 'lib/siba/siba_kernel.rb', line 24

def siba_kernel
  KernelPlug.siba_kernel
end