class FashionPolice::SpacesAroundArgumentsInSquareBrackets
Public Instance Methods
error_message()
click to toggle source
# File lib/fashion-police.rb, line 129 def error_message "Put spaces around arguments inside square brackets" end
test(string)
click to toggle source
# File lib/fashion-police.rb, line 122 def test(string) return true if string.match(/\[ .* \]/) return false if string.match(/\[[^\]]+\]/) return true end