class FashionPolice::SpacesAroundEqualsSigns
Public Instance Methods
error_message()
click to toggle source
# File lib/fashion-police.rb, line 63 def error_message "Put spaces around equals signs" end
test(string)
click to toggle source
# File lib/fashion-police.rb, line 57 def test(string) return true if string.match(/ = /) return false if string.match(/\S=[^=]/) return true end