exists?(path)
click to toggle source
def exists?(path)
!get(path).nil?
end
from_hash(h)
click to toggle source
def from_hash(h)
Rudy::Disk.from_hash h
end
get(path)
click to toggle source
def get(path)
tmp = Rudy::Disk.new path
record = Rudy::Metadata.get tmp.name
return nil unless record.is_a?(Hash)
tmp.from_hash record
end