Spec-Zone.ru › Ruby 2.7

класс Bundler::DepProxy

Родитель:
Объект

Атрибуты

__platform[R]
dep[R]

Публичные Классовые Методы

new(dep, platform) Показать исходный код
# File lib/bundler/dep_proxy.rb, line 7
def initialize(dep, platform)
  @dep = dep
  @__platform = platform
end

Публичные Методы Экземпляров

==(other) Показать исходный код
# File lib/bundler/dep_proxy.rb, line 16
def ==(other)
  return false if other.class != self.class
  dep == other.dep && __platform == other.__platform
end
Также переименован как: eql?
eql?(other)
Псевдоним для: ==
hash() Показать исходный код
# File lib/bundler/dep_proxy.rb, line 12
def hash
  @hash ||= [dep, __platform].hash
end
name() Показать исходный код
# File lib/bundler/dep_proxy.rb, line 27
def name
  @dep.name
end
requirement() Показать исходный код
# File lib/bundler/dep_proxy.rb, line 31
def requirement
  @dep.requirement
end
to_s() Показать исходный код
# File lib/bundler/dep_proxy.rb, line 35
def to_s
  s = name.dup
  s << " (#{requirement})" unless requirement == Gem::Requirement.default
  s << " #{__platform}" unless __platform == Gem::Platform::RUBY
  s
end
type() Показать исходный код
# File lib/bundler/dep_proxy.rb, line 23
def type
  @dep.type
end

Приватные методы экземпляров

method_missing(*args, &blk) Показать исходный код
# File lib/bundler/dep_proxy.rb, line 44
def method_missing(*args, &blk)
  @dep.send(*args, &blk)
end

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API