Spec-Zone.ru › Homebrew

Module: ELFPathname::ClassMethods

Included in:
ELFPathname
Defined in:
extend/os/linux/extend/pathname.rb

Instance Method Summary collapse

  • #wrap(path) ⇒ ELFShim private

Instance Method Details

#wrap(path) ⇒ ELFShim

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • path (Pathname, String, ELFShim)

Returns:

  • (ELFShim)


9
10
11
12
13
14
15
# File 'extend/os/linux/extend/pathname.rb', line 9

def wrap(path)
  return path if path.is_a?(ELFShim)

  path = ::Pathname.new(path)
  path.extend(ELFShim)
  T.cast(path, ELFShim)
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/ELFPathname/ClassMethods.html

Spec-Zone.ru

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