module Recode::ChangeVariations
Public Instance Methods
change_variations(old_string, new_string)
click to toggle source
# 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