<=>

stat other_stat รข -1, 0, 1, nil
Instance Public methods

Compares File::Stat objects by comparing their respective modification times.

nil is returned if the two values are incomparable.

f1 = File.new("f1", "w")
sleep 1
f2 = File.new("f2", "w")
f1.stat <=> f2.stat   #=> -1
doc_ruby_on_rails
2015-04-06 05:46:16
Comments
Leave a Comment

Please login to continue.