Class: WsdlMapperTesting::TmpPath
- Inherits:
-
Object
- Object
- WsdlMapperTesting::TmpPath
- Defined in:
- lib/wsdl_mapper_testing/tmp_path.rb
Instance Method Summary (collapse)
-
- (TmpPath) initialize
constructor
A new instance of TmpPath.
- - (Object) join(*args)
- - (Object) to_s
- - (Object) unlink
Constructor Details
- (TmpPath) initialize
Returns a new instance of TmpPath
3 4 5 6 |
# File 'lib/wsdl_mapper_testing/tmp_path.rb', line 3 def initialize @path = File.join ::TEST_TMP_PATH, SecureRandom.hex(5) FileUtils.mkdir_p @path end |
Instance Method Details
- (Object) join(*args)
8 9 10 |
# File 'lib/wsdl_mapper_testing/tmp_path.rb', line 8 def join(*args) File.join @path, *args end |
- (Object) to_s
12 13 14 |
# File 'lib/wsdl_mapper_testing/tmp_path.rb', line 12 def to_s @path end |
- (Object) unlink
16 17 18 |
# File 'lib/wsdl_mapper_testing/tmp_path.rb', line 16 def unlink FileUtils.rm_rf @path end |