In Files

  • bundler/dep_proxy.rb

Class/Module Index [+]

Quicksearch

Bundler::DepProxy

Attributes

__platform[R]
dep[R]

Public Class Methods

get_proxy(dep, platform) click to toggle source
 
               # File bundler/dep_proxy.rb, line 8
def self.get_proxy(dep, platform)
  @proxies[[dep, platform]] ||= new(dep, platform).freeze
end
            

Public Instance Methods

clone() click to toggle source
 
               # File bundler/dep_proxy.rb, line 44
def clone
  raise NoMethodError.new("DepProxy cannot be cloned")
end
            
dup() click to toggle source
 
               # File bundler/dep_proxy.rb, line 40
def dup
  raise NoMethodError.new("DepProxy cannot be duplicated")
end
            
name() click to toggle source
 
               # File bundler/dep_proxy.rb, line 25
def name
  @dep.name
end
            
requirement() click to toggle source
 
               # File bundler/dep_proxy.rb, line 29
def requirement
  @dep.requirement
end
            
to_s() click to toggle source
 
               # File bundler/dep_proxy.rb, line 33
def to_s
  s = name.dup
  s << " (#{requirement})" unless requirement == Gem::Requirement.default
  s << " #{__platform}" unless __platform == Gem::Platform::RUBY
  s
end
            
type() click to toggle source
 
               # File bundler/dep_proxy.rb, line 21
def type
  @dep.type
end