class String
TODO: refactor
Public Instance Methods
passivize()
click to toggle source
# File lib/core_ext/string.rb, line 5 def passivize sub(/(e?d?|ing|[eo]r|ant|(t)ion)$/, '\\2ed') end
TODO: refactor
# File lib/core_ext/string.rb, line 5 def passivize sub(/(e?d?|ing|[eo]r|ant|(t)ion)$/, '\\2ed') end