Module: RuboCop::Cop::Cask::OnUrlStanza

Extended by:
Forwardable
Includes:
CaskHelp
Included in:
Url, UrlLegacyCommaSeparators
Defined in:
rubocops/cask/mixin/on_url_stanza.rb,
rubocops/cask/mixin/on_url_stanza.rbi

Instance Method Summary collapse

Methods included from CaskHelp

#inner_stanzas, #on_block, #on_cask_stanza_block, #on_system_methods

Instance Method Details

#on_cask(cask_block) ⇒ Object



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

def on_cask(cask_block)
  @cask_block = cask_block

  toplevel_stanzas.select(&:url?).each do |stanza|
    on_url_stanza(stanza)
  end
end