Class: String

Inherits:
Object show all
Defined in:
lib/sprinkle/extensions/string.rb

Overview

:nodoc:

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_task_name

REVISIT: what chars shall we allow in task names?



4
5
6
7
8
# File 'lib/sprinkle/extensions/string.rb', line 4

def to_task_name
  s = downcase
  s.gsub!(/-/, '_') # all - to _ chars
  s
end