Method: ImproveTypography::Processors::Ellipsis#call

Defined in:
lib/improve_typography/processors/ellipsis.rb

#callObject



6
7
8
9
10
11
# File 'lib/improve_typography/processors/ellipsis.rb', line 6

def call
  return str unless sign_exists?(ellipsis_sign)
  return str unless str.match?(REGEXP)

  str.gsub(REGEXP, ellipsis_sign)
end