Class: Nitrous::IntegrationTest::DummyFile
- Inherits:
-
Object
- Object
- Nitrous::IntegrationTest::DummyFile
- Defined in:
- lib/nitrous/integration_test.rb
Instance Method Summary collapse
-
#initialize(name, content) ⇒ DummyFile
constructor
A new instance of DummyFile.
- #path ⇒ Object
- #read ⇒ Object
Constructor Details
#initialize(name, content) ⇒ DummyFile
Returns a new instance of DummyFile.
360 361 362 |
# File 'lib/nitrous/integration_test.rb', line 360 def initialize(name, content) @name, @content = name, content end |
Instance Method Details
#path ⇒ Object
368 369 370 |
# File 'lib/nitrous/integration_test.rb', line 368 def path "/tmp/#{@name}" end |
#read ⇒ Object
364 365 366 |
# File 'lib/nitrous/integration_test.rb', line 364 def read @content end |