class FashionPolice::SpacesAroundArgumentsInParens
Public Instance Methods
error_message()
click to toggle source
# File lib/fashion-police.rb, line 90 def error_message "Put spaces around arguments inside parentheses" end
test(string)
click to toggle source
# File lib/fashion-police.rb, line 81 def test(string) return true if string.match(/\( .* \)/) return true if string.match(/\S*\(function\(/) return true if string.match(/\S+\(["'].*["']\)/) return false if string.match(/\(\S+\)/) return true end