Skip to content

Commit

Permalink
Merge pull request #1673 from tbpgr/add_sample_code_of_pathname_i_atime
Browse files Browse the repository at this point in the history
Add sample code of Pathname#atime
  • Loading branch information
pocke authored Feb 4, 2020
2 parents e006b1a + 32366dc commit 2ee2d9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions refm/api/src/pathname.rd
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,13 @@ File.symlink(old, self.to_s) と同じです。
--- atime -> Time
File.atime(self.to_s) を渡したものと同じです。

#@samplecode 例
require "pathname"

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

@see [[m:File.atime]]

--- ctime -> Time
Expand Down

0 comments on commit 2ee2d9e

Please sign in to comment.