Class: CrossStub::Stores::File
- Defined in:
- lib/cross-stub/stores/file.rb
Instance Method Summary collapse
- #current ⇒ Object
-
#initialize(file, truncate = true) ⇒ File
constructor
A new instance of File.
- #previous ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(file, truncate = true) ⇒ File
Returns a new instance of File.
5 6 7 8 |
# File 'lib/cross-stub/stores/file.rb', line 5 def initialize(file, truncate = true) @file = file super(truncate) end |
Instance Method Details
#current ⇒ Object
10 11 12 |
# File 'lib/cross-stub/stores/file.rb', line 10 def current @file end |
#previous ⇒ Object
14 15 16 |
# File 'lib/cross-stub/stores/file.rb', line 14 def previous "#{@file}.stale" end |