requirements/ruby_requirement: fix Rubocop warnings.
This commit is contained in:
parent
dab681e715
commit
784e804fc2
@ -3,7 +3,7 @@ class RubyRequirement < Requirement
|
|||||||
default_formula "ruby"
|
default_formula "ruby"
|
||||||
|
|
||||||
def initialize(tags)
|
def initialize(tags)
|
||||||
@version = tags.shift if /(\d\.)+\d/ === tags.first
|
@version = tags.shift if /(\d\.)+\d/ =~ tags.first
|
||||||
raise "RubyRequirement requires a version!" unless @version
|
raise "RubyRequirement requires a version!" unless @version
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user