Class: FashionPolice::SpacesNotTabs

Inherits:
Object
  • Object
show all
Defined in:
lib/fashion-police.rb

Instance Method Summary collapse

Instance Method Details

#error_messageObject



9
10
11
# File 'lib/fashion-police.rb', line 9

def error_message
  "Use spaces, not tabs"
end

#test(string) ⇒ Object



5
6
7
# File 'lib/fashion-police.rb', line 5

def test(string)
  not string.match(/\t/)
end