Sha256: 05ec8417aebdca7531ce558da61fff9ead0cf04bebcbf2a70b3d99488a7dfa4d

Contents?: true

Size: 547 Bytes

Versions: 6933

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,933 entries across 6,899 versions & 34 rubygems

Version Path
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width/string_ext.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width/string_ext.rb
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width/string_ext.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width/string_ext.rb
brakeman-4.3.1 bundle/ruby/2.5.0/gems/unicode-display_width-1.4.0/lib/unicode/display_width/string_ext.rb
unicode-display_width-1.4.0 lib/unicode/display_width/string_ext.rb
unicode-display_width-1.3.3 lib/unicode/display_width/string_ext.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/unicode-display_width-1.3.2/lib/unicode/display_width/string_ext.rb
unicode-display_width-1.3.2 lib/unicode/display_width/string_ext.rb
unicode-display_width-1.3.1 lib/unicode/display_width/string_ext.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/unicode-display_width-1.3.0/lib/unicode/display_width/string_ext.rb