Class: ImproveTypography::Processors::DoubleQuotes

Inherits:
ImproveTypography::Processor show all
Defined in:
lib/improve_typography/processors/double_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/double_quotes.rb', line 4

def call
  return str unless sign_exists?(double_quotes)
  return str unless str.match?(/[\"#{double_quotes[0]}#{double_quotes[1]}]/)
  replace_double_quotes
end