Class: Omnizip::Temp::Configuration
- Inherits:
-
Object
- Object
- Omnizip::Temp::Configuration
- Defined in:
- lib/omnizip/temp.rb
Overview
Configuration for temp file operations
Instance Attribute Summary collapse
-
#cleanup_on_exit ⇒ Object
Returns the value of attribute cleanup_on_exit.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 |
# File 'lib/omnizip/temp.rb', line 16 def initialize @directory = nil # Use system default (Dir.tmpdir) @prefix = "omniz_" @cleanup_on_exit = true end |
Instance Attribute Details
#cleanup_on_exit ⇒ Object
Returns the value of attribute cleanup_on_exit.
14 15 16 |
# File 'lib/omnizip/temp.rb', line 14 def cleanup_on_exit @cleanup_on_exit end |
#directory ⇒ Object
Returns the value of attribute directory.
14 15 16 |
# File 'lib/omnizip/temp.rb', line 14 def directory @directory end |
#prefix ⇒ Object
Returns the value of attribute prefix.
14 15 16 |
# File 'lib/omnizip/temp.rb', line 14 def prefix @prefix end |