Class: Pathname
- Inherits:
-
Object
- Object
- Pathname
- Defined in:
- lib/epub/maker.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.mktmpdir(prefix_suffix = nil, tmpdir = nil) ⇒ Pathname .mktmpdir(prefix_suffix = nil, tmpdir = nil) {|dir| ... } ⇒ Object
145 146 147 148 149 150 151 152 153 |
# File 'lib/epub/maker.rb', line 145 def mktmpdir(prefix_suffix=nil, tmpdir=nil) if block_given? Dir.mktmpdir prefix_suffix, tmpdir do |dir| yield new(dir) end else new(Dir.mktmpdir(prefix_suffix, tmpdir)) end end |
Instance Method Details
#remove_entry_secure ⇒ Object
156 157 158 |
# File 'lib/epub/maker.rb', line 156 def remove_entry_secure FileUtils.remove_entry_secure to_path end |