Method: Bio::Command::Tmpdir#initialize
- Defined in:
- lib/bio/command.rb
#initialize(prefix_suffix = nil, tmpdir = nil) ⇒ Tmpdir
Creates a new Tmpdir object. The arguments are the same as Bio::Command.mktmpdir.
Arguments:
-
(optional) prefix_suffix: String (or Array)
-
(optional) tmpdir: String: temporary directory’s path
- Returns
-
Tmpdir object
668 669 670 671 672 673 |
# File 'lib/bio/command.rb', line 668 def initialize(prefix_suffix = nil, tmpdir = nil) @data = [] @clean_proc = Remover.new(@data) ObjectSpace.define_finalizer(self, @clean_proc) @data.push(@path = Bio::Command.mktmpdir(prefix_suffix, tmpdir).freeze) end |