Class: Reline::Unicode

Inherits:
Object
  • Object
show all
Defined in:
lib/unicode/display_width/reline_ext.rb

Class Method Summary collapse

Class Method Details

.get_mbchar_width(mbchar) ⇒ Object



10
11
12
# File 'lib/unicode/display_width/reline_ext.rb', line 10

def self.get_mbchar_width(mbchar)
  Unicode::DisplayWidth.of(mbchar, Reline.ambiguous_width)
end