Module: RuboCop::Cop::Cask::OnDescStanza Private

Extended by:
Forwardable
Includes:
CaskHelp
Included in:
Desc
Defined in:
rubocops/cask/mixin/on_desc_stanza.rb,
rubocops/cask/mixin/on_desc_stanza.rbi,
sorbet/rbi/dsl/rubo_cop/cop/cask/on_desc_stanza.rbi

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

Instance Method Summary collapse

Methods included from CaskHelp

#cask_tap, #inner_stanzas, #on_block, #on_cask_stanza_block, #on_system_methods

Instance Method Details

#on_cask(cask_block) ⇒ Object

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.



12
13
14
15
16
17
18
# File 'rubocops/cask/mixin/on_desc_stanza.rb', line 12

def on_cask(cask_block)
  @cask_block = cask_block

  toplevel_stanzas.select(&:desc?).each do |stanza|
    on_desc_stanza(stanza)
  end
end

#toplevel_stanzas(*args, &block) ⇒ T.untyped

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:

  • args (T.untyped)
  • block (T.untyped)

Returns:

  • (T.untyped)


10
# File 'sorbet/rbi/dsl/rubo_cop/cop/cask/on_desc_stanza.rbi', line 10

def toplevel_stanzas(*args, &block); end