File: string_ext.rb

package info (click to toggle)
ruby-unicode-display-width 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 148 kB
  • sloc: ruby: 278; makefile: 3
file content (9 lines) | stat: -rw-r--r-- 260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

require_relative "../display_width"

class String
  def display_width(ambiguous = nil, overwrite = nil, old_options = {}, **options)
    Unicode::DisplayWidth.of(self, ambiguous, overwrite, old_options = {}, **options)
  end
end