Class: ImproveTypography::Processors::SingleQuotes

Inherits:
ImproveTypography::Processor show all
Defined in:
lib/improve_typography/processors/single_quotes.rb

Instance Attribute Summary

Attributes inherited from ImproveTypography::Processor

#options, #str

Instance Method Summary collapse

Methods inherited from ImproveTypography::Processor

call, inherited, #initialize

Constructor Details

This class inherits a constructor from ImproveTypography::Processor

Instance Method Details

#callObject



4
5
6
7
8
# File 'lib/improve_typography/processors/single_quotes.rb', line 4

def call
  return str unless sign_exists?(single_quotes)
  return str unless str.match?(regexp)
  replace_single_quotes
end