Class: RSpec::PathMatchers::Options::FileStatBase
- Defined in:
- lib/rspec/path_matchers/options/file_stat_base.rb
Overview
Base class for options whose actual value comes from File::Stat
Direct Known Subclasses
Atime, Birthtime, Ctime, EtcBase, Mode, Mtime, Size, SymlinkAtime, SymlinkBirthtime, SymlinkCtime, SymlinkMtime
Class Method Summary collapse
-
.fetch_actual(path, _failures) ⇒ Object
Implements fetch_actual by calling a specified method on a File::Stat object.
Methods inherited from Base
description, key, match, validate_expected
Class Method Details
.fetch_actual(path, _failures) ⇒ Object
Implements fetch_actual by calling a specified method on a File::Stat object.
12 13 14 |
# File 'lib/rspec/path_matchers/options/file_stat_base.rb', line 12 def self.fetch_actual(path, _failures) File.public_send(stat_source_method, path).public_send(stat_attribute) end |