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"
|
||||
|
||||
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
|
||||
super
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user