Module: Recode::ChangeVariations
- Included in:
- Runner
- Defined in:
- lib/recode/change_variations.rb
Instance Method Summary collapse
Instance Method Details
#change_variations(old_string, new_string) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/recode/change_variations.rb', line 6 def change_variations(old_string, new_string) result = [] result << [old_string.pluralize.underscore, new_string.pluralize.underscore] result << [old_string.pluralize, new_string.pluralize] result << [old_string.underscore, new_string.underscore] result << [old_string, new_string] result.uniq end |