Class: ImproveTypography::Processors::DoubleQuotes
- Inherits:
-
ImproveTypography::Processor
- Object
- Struct
- ImproveTypography::Processor
- ImproveTypography::Processors::DoubleQuotes
- Defined in:
- lib/improve_typography/processors/double_quotes.rb
Instance Attribute Summary
Attributes inherited from ImproveTypography::Processor
Instance Method Summary collapse
Methods inherited from ImproveTypography::Processor
Constructor Details
This class inherits a constructor from ImproveTypography::Processor
Instance Method Details
#call ⇒ Object
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 |