Method: Docter::Resource::Reloadable#modified
- Defined in:
- lib/docter/common.rb
#modified ⇒ Object
:call-seq:
modified() => time
Returns the date/time this resource was last modified. If the resource comes from a file, the timestamp of the file, otherwise the when the resource was created.
65 66 67 |
# File 'lib/docter/common.rb', line 65 def modified() @filename ? File.stat(@filename).mtime : @modified end |