Parent

Class Index [+]

Quicksearch

Gem::Dependency

Attributes

source[RW]
groups[RW]

Public Instance Methods

encode_with(coder) click to toggle source
     # File lib/bundler/rubygems_ext.rb, line 113
113:     def encode_with(coder)
114:       to_yaml_properties.each do |ivar|
115:         coder[ivar.to_s.sub(/^@/, '')] = instance_variable_get(ivar)
116:       end
117:     end
matches_spec?(spec) click to toggle source

Backport of performance enhancement added to Rubygems 1.4

     # File lib/bundler/rubygems_ext.rb, line 133
133:     def matches_spec?(spec)
134:       # name can be a Regexp, so use ===
135:       return false unless name === spec.name
136:       return true  if requirement.none?
137: 
138:       requirement.satisfied_by?(spec.version)
139:     end
required_by() click to toggle source
    # File lib/bundler/resolver.rb, line 16
16:     def required_by
17:       @required_by ||= []
18:     end
requirement() click to toggle source
    # File lib/bundler/shared_helpers.rb, line 9
 9:       def requirement
10:         version_requirements
11:       end
to_lock() click to toggle source
     # File lib/bundler/rubygems_ext.rb, line 123
123:     def to_lock
124:       out = "  #{name}"
125:       unless requirement == Gem::Requirement.default
126:         reqs = requirement.requirements.map{|o,v| "#{o} #{v}" }
127:         out << " (#{reqs.join(', ')})"
128:       end
129:       out
130:     end
to_yaml_properties() click to toggle source
     # File lib/bundler/rubygems_ext.rb, line 119
119:     def to_yaml_properties
120:       instance_variables.reject { |p| ["@source", "@groups"].include?(p.to_s) }
121:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.