instance method Pathname#atime

atime -> Time[permalink][rdoc]

File.atime(self.to_s) を渡したものと同じです。



require "pathname"

pathname = Pathname("testfile")
pathname.atime # => 2018-12-18 20:58:13 +0900

[SEE_ALSO] File.atime