Class: ImproveTypography::Processors::SingleQuotes
- Inherits:
-
ImproveTypography::Processor
- Object
- Struct
- ImproveTypography::Processor
- ImproveTypography::Processors::SingleQuotes
- Defined in:
- lib/improve_typography/processors/single_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/single_quotes.rb', line 4 def call return str unless sign_exists?(single_quotes) return str unless str.match?(regexp) replace_single_quotes end |