Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/eprun/core_ext/string.rb
Overview
Copyright 2010-2013 Ayumu Nojima (野島 歩) and Martin J. Dürst ([email protected]) available under the same licence as Ruby itself (see www.ruby-lang.org/en/LICENSE.txt)
Instance Method Summary collapse
- #normalize(form = :nfc) ⇒ Object
- #normalize!(form = :nfc) ⇒ Object
- #normalized?(form = :nfc) ⇒ Boolean
Instance Method Details
#normalize(form = :nfc) ⇒ Object
8 9 10 |
# File 'lib/eprun/core_ext/string.rb', line 8 def normalize(form = :nfc) Eprun.normalize(self, form) end |
#normalize!(form = :nfc) ⇒ Object
12 13 14 |
# File 'lib/eprun/core_ext/string.rb', line 12 def normalize!(form = :nfc) replace(self.normalize(form)) end |
#normalized?(form = :nfc) ⇒ Boolean
16 17 18 |
# File 'lib/eprun/core_ext/string.rb', line 16 def normalized?(form = :nfc) Eprun.normalized?(self, form) end |