Class: MasterView::MIO::MTimeStringMIO

Inherits:
StringMIO show all
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

#exist

Attributes inherited from MIOBase

#pathname

Instance Method Summary collapse

Methods inherited from StringMIO

#exist?, #read, #remove, #write

Methods included from MasterViewIOIdenticalMixin

#identical?

Methods inherited from MIOBase

#full_pathname

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

#mtimeObject



317
318
319
# File 'lib/masterview/io.rb', line 317

def mtime
  @string_hash.mtime(self.pathname.to_s)
end