class Pkgman::Descriptor
Public Class Methods
new(path = 'pkgman.yml')
click to toggle source
# File lib/pkgman/descriptor.rb, line 7 def initialize(path = 'pkgman.yml') @path = path @data = Wrapper.new.merge(YAML.load(File.read(File.expand_path(@path)))) end
Public Instance Methods
[](name)
click to toggle source
# File lib/pkgman/descriptor.rb, line 12 def [](name) @data[name] end