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.
84 85 86 |
# File 'lib/docter/common.rb', line 84 def modified @filename ? File.stat(@filename).mtime : @modified end |