Spec-Zone.ru › Homebrew

Class: Formulary::FormulaJSONContentsLoader Private

Inherits:
FromAPILoader
  • Object
  • FormulaLoader
  • FromAPILoader
  • Formulary::FormulaJSONContentsLoader
show all
Defined in:
formulary.rb

Overview

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

Load formulae directly from their JSON contents.

Instance Attribute Summary

Attributes inherited from FormulaLoader

#alias_path, #name, #path, #tap

Instance Method Summary collapse

  • #initialize(name, contents, tap: nil, alias_name: nil) ⇒ void constructor private

Methods inherited from FromAPILoader

#klass, try_new

Methods inherited from FormulaLoader

#get_formula, #klass

Methods included from Utils::Output::Mixin

#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_uninstalled, #pretty_upgradable, #pretty_warning

Methods included from Context

current, current=, #debug?, #quiet?, #verbose?, #with_context

Constructor Details

#initialize(name, contents, tap: nil, alias_name: nil) ⇒ void

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:

  • name (String)
  • contents (Hash{String => T.untyped})
  • tap (Tap, nil) (defaults to: nil)
  • alias_name (String, nil) (defaults to: nil)


966
967
968
969
# File 'formulary.rb', line 966

def initialize(name, contents, tap: nil, alias_name: nil)
  @contents = contents
  super(name, tap: tap, alias_name: alias_name)
end

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

Spec-Zone.ru

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