Module: AutoCorrect::String

Defined in:
lib/auto-correct/string.rb

Instance Method Summary collapse

Instance Method Details

#auto_correct!Object



8
9
10
11
# File 'lib/auto-correct/string.rb', line 8

def auto_correct!
  ActiveSupport::Deprecation.warn("String.auto_correct! is deprecated and will be removed in auto-corrrect 1.0, please use AutoCorrect.format instead.")
  self.sub!(self, AutoCorrect.format(self))
end

#auto_space!Object



3
4
5
6
# File 'lib/auto-correct/string.rb', line 3

def auto_space!
  ActiveSupport::Deprecation.warn("String.auto_space! is deprecated and will be removed in auto-corrrect 1.0, please use AutoCorrect.format instead.")
  self.sub!(self, AutoCorrect.format(self))
end