class FashionPolice::SpacesBeforeAngleBrackets
Public Instance Methods
error_message()
click to toggle source
# File lib/fashion-police.rb, line 103 def error_message "Put spaces in front of angle brackets" end
test(string)
click to toggle source
# File lib/fashion-police.rb, line 96 def test(string) return true if string.match(/(\S+ )?\{/) return false if string.match(/\S\{/) return true end