class Bundler::DepProxy
Attributes
__platform[R]
dep[R]
Public Class Methods
new(dep, platform)
click to toggle source
# File lib/bundler/dep_proxy.rb, line 5 def initialize(dep, platform) @dep = dep @__platform = platform end
Public Instance Methods
==(other)
click to toggle source
# File lib/bundler/dep_proxy.rb, line 14 def ==(other) dep == other.dep && __platform == other.__platform end
Also aliased as: eql?
hash()
click to toggle source
# File lib/bundler/dep_proxy.rb, line 10 def hash @hash ||= dep.hash end
name()
click to toggle source
# File lib/bundler/dep_proxy.rb, line 24 def name @dep.name end
requirement()
click to toggle source
# File lib/bundler/dep_proxy.rb, line 28 def requirement @dep.requirement end
to_s()
click to toggle source
# File lib/bundler/dep_proxy.rb, line 32 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 lib/bundler/dep_proxy.rb, line 20 def type @dep.type end
Private Instance Methods
method_missing(*args, &blk)
click to toggle source
# File lib/bundler/dep_proxy.rb, line 41 def method_missing(*args, &blk) @dep.send(*args, &blk) end