mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Add typecheck to constructor
This commit is contained in:
parent
ea0a88a517
commit
cfa7d82f65
@ -12,6 +12,7 @@ module Homebrew
|
||||
attr_reader :url, :tap, :sha256, :desc, :homepage
|
||||
attr_accessor :name
|
||||
|
||||
sig { params(name: T.nilable(String), version: T.nilable(String), tap: T.nilable(String), mode: T.nilable(Symbol), license: T.nilable(String), fetch: T::Boolean, head: T::Boolean).void }
|
||||
def initialize(name, version, tap:, mode:, license:, fetch: true, head: false)
|
||||
@name = name
|
||||
@version = Version.new(version) if version
|
||||
|
Loading…
x
Reference in New Issue
Block a user