类 Gem::Dependency
属性
force_ruby_platform[R]
groups[RW]
source[RW]
公共实例方法
encode_with(coder) 点击切换源代码
# File bundler/rubygems_ext.rb, line 264 def encode_with(coder) [:@name, :@requirement, :@type, :@prerelease, :@version_requirements].each do |ivar| coder[ivar.to_s.sub(/^@/, "")] = instance_variable_get(ivar) end end
to_lock() 点击切换源代码
# File bundler/rubygems_ext.rb, line 271 def to_lock out = String.new(" #{name}") unless requirement.none? reqs = requirement.requirements.map {|o, v| "#{o} #{v}" }.sort.reverse out << " (#{reqs.join(", ")})" end out end