class Bundler::PubGrub::StaticPackageSource
公共类方法
new() { |dsl| ... } 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 34 def initialize @root_deps = {} @packages = {} yield DSL.new(@packages, @root_deps) super() end
公共实例方法
all_versions_for(package) 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 43 def all_versions_for(package) @packages[package].keys end
dependencies_for(package, version) 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 51 def dependencies_for(package, version) @packages[package][version] end
parse_dependency(package, dependency) 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 55 def parse_dependency(package, dependency) return false unless @packages.key?(package) Bundler::PubGrub::RubyGems.parse_constraint(package, dependency) end
root_dependencies() 点击以切换源代码
# File bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb, line 47 def root_dependencies @root_deps end