Skip to content
Snippets Groups Projects
Unverified Commit 3a4c7223 authored by Markus Reiter's avatar Markus Reiter Committed by Sam Ford
Browse files

Allow accessing version in `livecheck` blocks.

parent 2a3ee11c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment