Module: Charwidth::String
- Defined in:
- lib/charwidth/string.rb
Instance Method Summary collapse
- #normalize_charwidth(options = {}) ⇒ Object
- #normalize_charwidth!(options = {}) ⇒ Object
- #to_full_width ⇒ Object
- #to_full_width! ⇒ Object
Instance Method Details
#normalize_charwidth(options = {}) ⇒ Object
4 5 6 |
# File 'lib/charwidth/string.rb', line 4 def normalize_charwidth( = {}) dup.normalize_charwidth!() end |
#normalize_charwidth!(options = {}) ⇒ Object
8 9 10 |
# File 'lib/charwidth/string.rb', line 8 def normalize_charwidth!( = {}) Charwidth.normalize!(self, ) end |
#to_full_width ⇒ Object
12 13 14 |
# File 'lib/charwidth/string.rb', line 12 def to_full_width dup.to_full_width! end |
#to_full_width! ⇒ Object
16 17 18 |
# File 'lib/charwidth/string.rb', line 16 def to_full_width! Charwidth.to_full_width!(self) end |