Class: FashionPolice::SpacesAroundEqualsSigns
- Inherits:
-
Object
- Object
- FashionPolice::SpacesAroundEqualsSigns
- Defined in:
- lib/fashion-police.rb
Instance Method Summary collapse
Instance Method Details
#error_message ⇒ Object
63 64 65 |
# File 'lib/fashion-police.rb', line 63 def "Put spaces around equals signs" end |
#test(string) ⇒ Object
57 58 59 60 61 |
# File 'lib/fashion-police.rb', line 57 def test(string) return true if string.match(/ = /) return false if string.match(/\S=[^=]/) return true end |