GithubGistFormula doesn't need to know the exact signature of initialize
This commit is contained in:
parent
af272e04c7
commit
b63fb8d086
@ -9,7 +9,7 @@ end
|
|||||||
|
|
||||||
# See browser for an example
|
# See browser for an example
|
||||||
class GithubGistFormula < ScriptFileFormula
|
class GithubGistFormula < ScriptFileFormula
|
||||||
def initialize name='__UNKNOWN__', path=nil
|
def initialize(*)
|
||||||
url = self.class.stable.url
|
url = self.class.stable.url
|
||||||
self.class.stable.version(File.basename(File.dirname(url))[0,6])
|
self.class.stable.version(File.basename(File.dirname(url))[0,6])
|
||||||
super
|
super
|
||||||
|
Loading…
x
Reference in New Issue
Block a user