class FashionPolice::SpacesAroundArgumentsInAngleBrackets

Public Instance Methods

error_message() click to toggle source
# File lib/fashion-police.rb, line 116
def error_message
  "Put spaces around arguments inside angle brackets"
end
test(string) click to toggle source
# File lib/fashion-police.rb, line 109
def test(string)
  return true if string.match(/\{ .* \}/)
  return false if string.match(/\{[^\}]+\}/)

  return true
end