Class: MasterView::MIO::MTimeStringMIO
- Defined in:
- lib/masterview/io.rb
Overview
used by MTimeStringHashMIOTree to create MIO objects that check their mod time using the MTimeTrackingHash
Instance Attribute Summary
Attributes inherited from StringMIO
Attributes inherited from MIOBase
Instance Method Summary collapse
-
#initialize(path, mtime_tracking_hash) ⇒ MTimeStringMIO
constructor
A new instance of MTimeStringMIO.
- #mtime ⇒ Object
Methods inherited from StringMIO
#exist?, #read, #remove, #write
Methods included from MasterViewIOIdenticalMixin
Methods inherited from MIOBase
Constructor Details
#initialize(path, mtime_tracking_hash) ⇒ MTimeStringMIO
Returns a new instance of MTimeStringMIO.
313 314 315 |
# File 'lib/masterview/io.rb', line 313 def initialize(path, mtime_tracking_hash) super(path, mtime_tracking_hash, nil) end |
Instance Method Details
#mtime ⇒ Object
317 318 319 |
# File 'lib/masterview/io.rb', line 317 def mtime @string_hash.mtime(self.pathname.to_s) end |