class Envirobly::Default

def id

def id
  if File.exist?(@path)
    content = YAML.safe_load_file(@path)
    if content[self.class.key] =~ self.class.regexp
      return cast_id($1)
    end
  end
  nil
end