Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/sprinkle/extensions/string.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#to_task_name ⇒ Object
REVISIT: what chars shall we allow in task names?.
Instance Method Details
#to_task_name ⇒ Object
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 |