We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453d883 commit ea79781Copy full SHA for ea79781
lib/elixir/lib/kernel.ex
@@ -1379,6 +1379,13 @@ defmodule Kernel do
1379
file_info = FileInfo.new(atime: now())
1380
file_info.atime #=> Returns the value of atime
1381
file_info.atime(now()) #=> Updates the value of atime
1382
+
1383
+ # Update multiple attributes at once:
1384
+ file_info.update(atime: now(), accesses: 1)
1385
1386
+ # Obtain the keywords representation of a record:
1387
+ file_info.to_keywords #=> [accesses: 1, atime: {1370,7171,911705}]
1388
1389
1390
A record is simply a tuple where the first element is the record
1391
module name. We can get the record raw representation as follow:
0 commit comments