class FashionPolice::SpacesAroundArgumentsInForLoops
Public Instance Methods
error_message()
click to toggle source
# File lib/fashion-police.rb, line 75 def error_message "Put spaces around for loop arguments" end
test(string)
click to toggle source
# File lib/fashion-police.rb, line 69 def test(string) return false if string.match(/for\(\S+\s+[^\)]+\)/) return false if string.match(/for \(\S+\s+/) return true end