Sha256: 05ec8417aebdca7531ce558da61fff9ead0cf04bebcbf2a70b3d99488a7dfa4d

Contents?: true

Size: 547 Bytes

Versions: 6932

Compression:

Stored size: 547 Bytes

Contents

require_relative '../display_width' unless defined? Unicode::DisplayWidth

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

  def display_size(*args)
    warn "Deprecation warning: Please use `String#display_width` instead of `String#display_size`"
    display_width(*args)
  end

  def display_length(*args)
    warn "Deprecation warning: Please use `String#display_width` instead of `String#display_length`"
    display_width(*args)
  end
end

Version data entries

6,932 entries across 6,898 versions & 34 rubygems

Version Path
cybrid_api_id_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
ory-client-1.16.3 vendor/bundle/ruby/3.1.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_id_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb
cybrid_api_organization_ruby-0.123.163 vendor/bundle/ruby/3.3.0/gems/unicode-display_width-1.5.0/lib/unicode/display_width/string_ext.rb