class Rugged::Repository::Attributes
def self.parse_opts(opt)
def self.parse_opts(opt) flags = LOAD_PRIORITIES[opt[:priority]] || 0 flags |= 4 if opt[:skip_system] flags end
def [](attribute)
def [](attribute) @repository.fetch_attributes(@path, attribute, @load_flags) end
def each(&block)
def each(&block) to_h.each(&block) end
def initialize(repository, path, options = {})
def initialize(repository, path, options = {}) @repository = repository @path = path @load_flags = Attributes.parse_opts(options) end
def to_h
def to_h @hash ||= @repository.fetch_attributes(@path, nil, @load_flags) end