formula.rb: make some methods private.
Don't seem to be used publicly anywhere. Closes Homebrew/homebrew#34729.
This commit is contained in:
parent
e7497e33c0
commit
d09727ae4a
@ -98,6 +98,8 @@ class Formula
|
|||||||
@pin = FormulaPin.new(self)
|
@pin = FormulaPin.new(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
def set_spec(name)
|
def set_spec(name)
|
||||||
spec = self.class.send(name)
|
spec = self.class.send(name)
|
||||||
if spec.url
|
if spec.url
|
||||||
@ -119,6 +121,8 @@ class Formula
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
public
|
||||||
|
|
||||||
def stable?
|
def stable?
|
||||||
active_spec == stable
|
active_spec == stable
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user