Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/fwtoolkit/tasks.rb
Overview
monkey patching string to add the ruby_format method used in frank:model tasks
Instance Method Summary collapse
Instance Method Details
#ruby_format ⇒ Object
19 20 21 |
# File 'lib/fwtoolkit/tasks.rb', line 19 def ruby_format self.gsub(/(.)([A-Z])/,'\1_\2').downcase end |
#ruby_format! ⇒ Object
23 24 25 |
# File 'lib/fwtoolkit/tasks.rb', line 23 def ruby_format! replace ruby_format end |