# File lib/gem_plugin.rb, line 196 196: def resource(gem_name, path) 197: if not loaded? gem_name 198: raise PluginNotLoaded.new("Plugin #{gem_name} not loaded when getting resource #{path}") 199: end 200: 201: file = File.join(@gems[gem_name], "resources", path) 202: 203: if File.exist? file 204: return file 205: else 206: return nil 207: end 208: end