Sha256: 6df6db1e1e70e75a7c555efdc4beae80cfdf912d35da7870ecd39463fc14bd2b
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
module Vfs class Entry module SpecialAttributes def created_at safe_get :created_at end def updated_at safe_get :updated_at end protected def safe_get name if value = get[name] value else if get[:dir] or get[:file] raise "attribute :#{name} not supported for #{storage.class}!" else raise "entry #{path} not exist!" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vfs-0.3.14 | lib/vfs/entries/entry/special_attributes.rb |
vfs-0.3.13 | lib/vfs/entries/entry/special_attributes.rb |