mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
21 lines
371 B
Ruby
21 lines
371 B
Ruby
![]() |
# typed: false
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
module Homebrew
|
||
|
module API
|
||
|
# Helper functions for using the cask JSON API.
|
||
|
#
|
||
|
# @api private
|
||
|
module Cask
|
||
|
extend T::Sig
|
||
|
|
||
|
module_function
|
||
|
|
||
|
sig { params(name: String).returns(Hash) }
|
||
|
def fetch(name)
|
||
|
Homebrew::API.fetch "cask/#{name}.json", json: true
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|