Allow accessing version in livecheck
blocks.
This commit is contained in:
parent
2a3ee11c07
commit
3a4c7223df
@ -8,6 +8,8 @@
|
||||
# This information is used by the `brew livecheck` command to control its
|
||||
# behavior.
|
||||
class Livecheck
|
||||
extend Forwardable
|
||||
|
||||
# A very brief description of why the formula/cask is skipped (e.g. `No longer
|
||||
# developed or maintained`).
|
||||
# @return [String, nil]
|
||||
@ -107,6 +109,9 @@ class Livecheck
|
||||
end
|
||||
end
|
||||
|
||||
delegate version: :@formula_or_cask
|
||||
private :version
|
||||
|
||||
# Returns a `Hash` of all instance variable values.
|
||||
# @return [Hash]
|
||||
def to_hash
|
||||
|
Loading…
x
Reference in New Issue
Block a user