Sha256: 0585c81b8080043df9d6b27e230b780c53ae8cd8e65ef61f28408c8d8818ee72
Contents?: true
Size: 278 Bytes
Versions: 3
Compression:
Stored size: 278 Bytes
Contents
module Attentive module Text extend self def normalize(text) straighten_quotes downcase text end def downcase(text) text.downcase end def straighten_quotes(text) text.gsub(/[“”]/, "\"").gsub(/[‘’]/, "'") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
attentive-0.2.0 | lib/attentive/text.rb |
attentive-0.1.1 | lib/attentive/text.rb |
attentive-0.1.0 | lib/attentive/text.rb |