Method: Docter::Resource::Reloadable#modified?
- Defined in:
- lib/docter/common.rb
#modified? ⇒ Boolean
:call-seq:
modified?() => boolean
Returns true if the resource was modified since it was lase (re)loaded. Only applies to resources created from a file, all other resources return false.
74 75 76 |
# File 'lib/docter/common.rb', line 74 def modified?() @filename ? File.stat(@filename).mtime > @modified : false end |