Module: RuboCop::Cop::Cask::OnHomepageStanza Private
- Extended by:
- Forwardable
- Includes:
- CaskHelp
- Included in:
- HomepageUrlStyling
- Defined in:
- rubocops/cask/mixin/on_homepage_stanza.rb,
rubocops/cask/mixin/on_homepage_stanza.rbi,
sorbet/rbi/dsl/rubo_cop/cop/cask/on_homepage_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_homepage_stanza.rb', line 12 def on_cask(cask_block) @cask_block = cask_block toplevel_stanzas.select(&:homepage?).each do |stanza| on_homepage_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.
10 |
# File 'sorbet/rbi/dsl/rubo_cop/cop/cask/on_homepage_stanza.rbi', line 10 def toplevel_stanzas(*args, &block); end |