Module: SexySlug::SignificantDot
- Defined in:
- lib/sexy_slug/significant_dot.rb
Constant Summary collapse
- PATTERN =
/(?<=[^\s\d.]|^)\.(?=[^\s\d.])/
Class Method Summary collapse
Class Method Details
.call(string) ⇒ Object
2 3 4 |
# File 'lib/sexy_slug/significant_dot.rb', line 2 def self.call(string) string.gsub(PATTERN, " #{SexySlug.t('dot')} ") end |