class AnyStyle::Feature::Punctuation
Public Instance Methods
observe(token, **opts)
click to toggle source
# File lib/anystyle/feature/punctuation.rb 4 def observe(token, **opts) 5 case token 6 when /^\p{^P}+$/ 7 :none 8 when /:/ 9 :colon 10 when /\p{Pd}/ 11 :hyphen 12 when /\./ 13 :period 14 when /&/ 15 :amp 16 else 17 :other 18 end 19 end