class FashionPolice::SpacesAroundArgumentsInFunctionDeclarations

Public Instance Methods

error_message() click to toggle source
# File lib/fashion-police.rb, line 141
def error_message
  "Put spaces around for loop arguments"
end
test(string) click to toggle source
# File lib/fashion-police.rb, line 135
def test(string)
  return true if string.match(/function( .+)?\( [^\)]+ \)/)
  return false if string.match(/function( .+)?\([^\)]+\)/)
  return true
end