Module: RuboCop::Cop::Cask::OnHomepageStanza Private
- Extended by:
- Forwardable
- Includes:
- CaskHelp
- Included in:
- HomepageUrlTrailingSlash
- Defined in:
- rubocops/cask/mixin/on_homepage_stanza.rb,
rubocops/cask/mixin/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
- #on_cask(cask_block) ⇒ Object private
Methods included from CaskHelp
#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 |