In Files

  • bundler/rubygems_ext.rb

Class/Module Index [+]

Quicksearch

Gem::Dependency

Attributes

all_sources[RW]
groups[RW]
source[RW]

Public Instance Methods

encode_with(coder) click to toggle source
 
               # File bundler/rubygems_ext.rb, line 113
def encode_with(coder)
  to_yaml_properties.each do |ivar|
    coder[ivar.to_s.sub(/^@/, "")] = instance_variable_get(ivar)
  end
end
            
to_lock() click to toggle source
 
               # File bundler/rubygems_ext.rb, line 123
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
            
to_yaml_properties() click to toggle source
 
               # File bundler/rubygems_ext.rb, line 119
def to_yaml_properties
  instance_variables.reject {|p| ["@source", "@groups", "@all_sources"].include?(p.to_s) }
end