mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #15430 from reitermarkus/cask-inspect
Simplify `Cask#inspect`.
This commit is contained in:
commit
53de9f38a2
@ -287,6 +287,10 @@ module Cask
|
|||||||
@token
|
@token
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
"#<Cask #{token}#{sourcefile_path&.to_s&.prepend(" ")}>"
|
||||||
|
end
|
||||||
|
|
||||||
def hash
|
def hash
|
||||||
token.hash
|
token.hash
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user