# File lib/bundler/dep_proxy.rb, line 6 def initialize(dep, platform) @dep = dep @__platform = platform end
# File lib/bundler/dep_proxy.rb, line 15 def ==(other) dep == other.dep && __platform == other.__platform end
# File lib/bundler/dep_proxy.rb, line 11 def hash @hash ||= dep.hash end
# File lib/bundler/dep_proxy.rb, line 25 def name @dep.name end
# File lib/bundler/dep_proxy.rb, line 29 def requirement @dep.requirement end
# File lib/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
# File lib/bundler/dep_proxy.rb, line 21 def type @dep.type end
# File lib/bundler/dep_proxy.rb, line 42 def method_missing(*args, &blk) @dep.send(*args, &blk) end