class YAVM::Stores::Base

Public Instance Methods

exists?() click to toggle source

If the file for the store exists. Only 1 file must match the glob.

# File lib/yavm/stores/base.rb, line 13
def exists?
  Dir[glob].length == 1
end
filename() click to toggle source

Fetch the matched filename for this store

# File lib/yavm/stores/base.rb, line 20
def filename
  Dir[glob].first if exists?
end
name() click to toggle source
# File lib/yavm/stores/base.rb, line 6
def name
  self.class.name
end