Add init sig as well
This commit is contained in:
parent
08e46c18cd
commit
b5c145cfa9
@ -198,6 +198,10 @@ class Formula
|
|||||||
attr_accessor :force_bottle
|
attr_accessor :force_bottle
|
||||||
|
|
||||||
# @private
|
# @private
|
||||||
|
sig {
|
||||||
|
params(name: String, path: Pathname, spec: Symbol, alias_path: T.any(NilClass, Pathname, String),
|
||||||
|
tap: T.nilable(Tap), force_bottle: T::Boolean).void
|
||||||
|
}
|
||||||
def initialize(name, path, spec, alias_path: nil, tap: nil, force_bottle: false)
|
def initialize(name, path, spec, alias_path: nil, tap: nil, force_bottle: false)
|
||||||
# Only allow instances of subclasses. The base class does not hold any spec information (URLs etc).
|
# Only allow instances of subclasses. The base class does not hold any spec information (URLs etc).
|
||||||
raise "Do not call `Formula.new' directly without a subclass." unless self.class < Formula
|
raise "Do not call `Formula.new' directly without a subclass." unless self.class < Formula
|
||||||
|
Loading…
x
Reference in New Issue
Block a user