Formula::finalize_dsl
This commit is contained in:
parent
37a56fa513
commit
99850fcbda
@ -419,6 +419,8 @@ class Formula
|
||||
|
||||
raise NameError if !klass.ancestors.include? Formula
|
||||
|
||||
klass.finalize_dsl
|
||||
|
||||
return klass.new(name) if install_type == :from_name
|
||||
return klass.new(name, path.to_s)
|
||||
rescue NoMethodError
|
||||
@ -823,6 +825,11 @@ private
|
||||
@test_defined = true
|
||||
@test = block
|
||||
end
|
||||
|
||||
# This method is called once by `factory` before creating any instances.
|
||||
# It allows the DSL to finalize itself, reducing complexity in the constructor.
|
||||
def finalize_dsl
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user