class ImproveTypography::Processors::Units
Constants
- REGEXP
Public Instance Methods
call()
click to toggle source
# File lib/improve_typography/processors/units.rb, line 6 def call return str unless str.match?(REGEXP) str.gsub(REGEXP, '\1\2<sup>\3</sup>') end