Class: Helpers::NewFile
- Inherits:
-
Object
- Object
- Helpers::NewFile
- Defined in:
- lib/amnesie/helpers.rb
Direct Known Subclasses
Instance Method Summary collapse
- #add ⇒ Object
-
#initialize(string, name, dest = "/tmp") ⇒ NewFile
constructor
A new instance of NewFile.
- #perm(user, perm) ⇒ Object
Constructor Details
#initialize(string, name, dest = "/tmp") ⇒ NewFile
Returns a new instance of NewFile.
23 24 25 26 27 |
# File 'lib/amnesie/helpers.rb', line 23 def initialize(string, name, dest = "/tmp") @string = string @name = name @dest = dest + "/" + @name end |