Class: Gem::Dependency
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
|
|
Inherits: | Object |
Defined in: | lib/bundler/rubygems_ext.rb |
Instance Attribute Summary
- #force_ruby_platform readonly
- #groups rw
- #source rw
Instance Method Summary
FilterIgnoredSpecs
- Included
::Bundler::ForcePlatform
- Included
#default_force_ruby_platform | The |
Instance Attribute Details
#force_ruby_platform (readonly)
[ GitHub ]# File 'lib/bundler/rubygems_ext.rb', line 247
attr_reader :force_ruby_platform
#groups (rw)
[ GitHub ]# File 'lib/bundler/rubygems_ext.rb', line 249
attr_accessor :source, :groups
#source (rw)
[ GitHub ]# File 'lib/bundler/rubygems_ext.rb', line 249
attr_accessor :source, :groups
Instance Method Details
#encode_with(coder)
[ GitHub ]# File 'lib/bundler/rubygems_ext.rb', line 254
def encode_with(coder) [:@name, :@requirement, :@type, :@prerelease, :@version_requirements].each do |ivar| coder[ivar.to_s.sub(/^@/, "")] = instance_variable_get(ivar) end end
#eql?
[ GitHub ]# File 'lib/bundler/rubygems_ext.rb', line 251
alias_method :eql?, :==
#to_lock
[ GitHub ]# File 'lib/bundler/rubygems_ext.rb', line 261
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