Merge pull request #19383 from Homebrew/fix-yard-directives

docs: Remove misused YARD directives
This commit is contained in:
Douglas Eichelberger 2025-02-25 20:56:58 +00:00 committed by GitHub
commit 19332ee1d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 7 deletions

View File

@ -3432,8 +3432,6 @@ class Formula
# ```ruby # ```ruby
# allow_network_access! [:build, :test] # allow_network_access! [:build, :test]
# ``` # ```
#
# @!attribute [w] allow_network_access!
sig { params(phases: T.any(Symbol, T::Array[Symbol])).void } sig { params(phases: T.any(Symbol, T::Array[Symbol])).void }
def allow_network_access!(phases = []) def allow_network_access!(phases = [])
phases_array = Array(phases) phases_array = Array(phases)
@ -3466,8 +3464,6 @@ class Formula
# ```ruby # ```ruby
# deny_network_access! [:build, :test] # deny_network_access! [:build, :test]
# ``` # ```
#
# @!attribute [w] deny_network_access!
sig { params(phases: T.any(Symbol, T::Array[Symbol])).void } sig { params(phases: T.any(Symbol, T::Array[Symbol])).void }
def deny_network_access!(phases = []) def deny_network_access!(phases = [])
phases_array = Array(phases) phases_array = Array(phases)
@ -3740,7 +3736,6 @@ class Formula
T.must(@stable).instance_eval(&block) T.must(@stable).instance_eval(&block)
end end
# @!attribute [w] head
# Adds a {.head} {SoftwareSpec}. # Adds a {.head} {SoftwareSpec}.
# This can be installed by passing the `--HEAD` option to allow # This can be installed by passing the `--HEAD` option to allow
# installing software directly from a branch of a version-control repository. # installing software directly from a branch of a version-control repository.

View File

@ -155,8 +155,6 @@ class Resource
# regex /foo-(\d+(?:\.\d+)+)\.tar/ # regex /foo-(\d+(?:\.\d+)+)\.tar/
# end # end
# ``` # ```
#
# @!attribute [w] livecheck
def livecheck(&block) def livecheck(&block)
return @livecheck unless block return @livecheck unless block