mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #19383 from Homebrew/fix-yard-directives
docs: Remove misused YARD directives
This commit is contained in:
commit
19332ee1d5
@ -3432,8 +3432,6 @@ class Formula
|
||||
# ```ruby
|
||||
# allow_network_access! [:build, :test]
|
||||
# ```
|
||||
#
|
||||
# @!attribute [w] allow_network_access!
|
||||
sig { params(phases: T.any(Symbol, T::Array[Symbol])).void }
|
||||
def allow_network_access!(phases = [])
|
||||
phases_array = Array(phases)
|
||||
@ -3466,8 +3464,6 @@ class Formula
|
||||
# ```ruby
|
||||
# deny_network_access! [:build, :test]
|
||||
# ```
|
||||
#
|
||||
# @!attribute [w] deny_network_access!
|
||||
sig { params(phases: T.any(Symbol, T::Array[Symbol])).void }
|
||||
def deny_network_access!(phases = [])
|
||||
phases_array = Array(phases)
|
||||
@ -3740,7 +3736,6 @@ class Formula
|
||||
T.must(@stable).instance_eval(&block)
|
||||
end
|
||||
|
||||
# @!attribute [w] head
|
||||
# Adds a {.head} {SoftwareSpec}.
|
||||
# This can be installed by passing the `--HEAD` option to allow
|
||||
# installing software directly from a branch of a version-control repository.
|
||||
|
@ -155,8 +155,6 @@ class Resource
|
||||
# regex /foo-(\d+(?:\.\d+)+)\.tar/
|
||||
# end
|
||||
# ```
|
||||
#
|
||||
# @!attribute [w] livecheck
|
||||
def livecheck(&block)
|
||||
return @livecheck unless block
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user