[ruby-core:108192] [Ruby master Bug#18680] The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
From:
"mame (Yusuke Endoh)" <noreply@...>
Date:
2022-04-07 07:55:40 UTC
List:
ruby-core #108192
Issue #18680 has been updated by mame (Yusuke Endoh). I guess that "aTime" means "a Time" or "an instance of Time". There is no strict rule for writing rdoc AFAIK, but I don't think it is very common to write a class constant name to represent a return instance type. I wonder if `-> time` is good. ---------------------------------------- Bug #18680: The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime https://bugs.ruby-lang.org/issues/18680#change-97164 * Author: pedz (Perry Smith) * Status: Open * Priority: Normal * ruby -v: 3.1.1 but it is in the latest git repo * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- I think it returns Time (not aTime). This is true for three of the four "time" methods. I would not mind making a pull request if this would be helpful. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>