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



5
6
7
8
9
10
11
12
# File 'lib/recode/change_variations.rb', line 5

def change_variations(old_string, new_string)
  result = []
  result << [old_string.pluralize.downcase, new_string.pluralize.downcase]
  result << [old_string.pluralize, new_string.pluralize]
  result << [old_string.downcase, new_string.downcase]
  result << [old_string, new_string]
  result.uniq
end