Module: Charwidth::String

Defined in:
lib/charwidth/string.rb

Instance Method Summary collapse

Instance Method Details

#normalize_charwidth(options = {}) ⇒ Object



4
5
6
# File 'lib/charwidth/string.rb', line 4

def normalize_charwidth(options = {})
  dup.normalize_charwidth!(options)
end

#normalize_charwidth!(options = {}) ⇒ Object



8
9
10
# File 'lib/charwidth/string.rb', line 8

def normalize_charwidth!(options = {})
  Charwidth.normalize!(self, options)
end

#to_full_widthObject



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