Module: Siba::FilePlug

Overview

Used to inject “siba_file” to classes that include this module

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.siba_fileObject



80
81
82
# File 'lib/siba/siba_file.rb', line 80

def self.siba_file
  @siba_file ||= SibaFile.new
end

.siba_file=(val) ⇒ Object

It is used in test to insert mock SibaFile object



85
86
87
# File 'lib/siba/siba_file.rb', line 85

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

Instance Method Details

#siba_fileObject



76
77
78
# File 'lib/siba/siba_file.rb', line 76

def siba_file
  FilePlug.siba_file
end