# File lib/gem_plugin.rb, line 225
225:     def config(gem_name, options={})
226:       config_file = Manager.instance.resource(gem_name, "/defaults.yaml")
227:       if config_file
228:         begin
229:           defaults = YAML.load_file(config_file)
230:           return defaults.merge(options)
231:         rescue
232:           raise "Error loading config #{config_file} for gem #{gem_name}"
233:         end
234:       else
235:         return options
236:       end
237:     end