Sha256: 385002e9d0c1c13e835db422444f78d159241f5bcb92439ea78d6b7024cbe963
Contents?: true
Size: 482 Bytes
Versions: 10
Compression:
Stored size: 482 Bytes
Contents
module Rudy module Disks RTYPE = 'disk'.freeze extend self extend Rudy::Metadata::ClassMethods include Rudy::Huxtable extend Rudy::Huxtable 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 def from_hash(h) Rudy::Disk.from_hash h end def exists?(path) !get(path).nil? end end end
Version data entries
10 entries across 10 versions & 2 rubygems