Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/spellr/token.rb
Direct Known Subclasses
Constant Summary collapse
- @@spellr_normalize =
rubocop:disable Style/ClassVars # I want to share this with subclasses
{}
Instance Method Summary collapse
Instance Method Details
#spellr_normalize ⇒ Object
9 10 11 12 13 |
# File 'lib/spellr/token.rb', line 9 def spellr_normalize @@spellr_normalize.fetch(to_s) do |term| @@spellr_normalize[term] = "#{term.strip.downcase.unicode_normalize.tr('’', "'")}\n" end end |