Class: RSpec::PathMatchers::Options::FileStatBase

Inherits:
Base
  • Object
show all
Defined in:
lib/rspec/path_matchers/options/file_stat_base.rb

Overview

Base class for options whose actual value comes from File::Stat

Class Method Summary collapse

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