Sha256: 0c0bda4e6f6d848a2f2186ac63448ae5c8a1411c4c61f8ee776383c6194cc450

Contents?: true

Size: 217 Bytes

Versions: 38

Compression:

Stored size: 217 Bytes

Contents

# Provides code to work properly on 1.8 and 1.9

class String
  unless method_defined? :bytesize
    alias_method :bytesize, :size
  end

  unless method_defined? :byteslice
    alias_method :byteslice, :[]
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
puma-2.2.1-java lib/puma/compat.rb
puma-2.2.1 lib/puma/compat.rb
puma-2.2.0-java lib/puma/compat.rb
puma-2.2.0 lib/puma/compat.rb
puma-2.1.1-java lib/puma/compat.rb
puma-2.1.1 lib/puma/compat.rb
puma-2.1.0-java lib/puma/compat.rb
puma-2.1.0 lib/puma/compat.rb
puma-2.0.1-java lib/puma/compat.rb
puma-2.0.1 lib/puma/compat.rb
puma-2.0.0-java lib/puma/compat.rb
puma-2.0.0 lib/puma/compat.rb
puma-2.0.0.b7-java lib/puma/compat.rb
puma-2.0.0.b7 lib/puma/compat.rb
puma-2.0.0.b6 lib/puma/compat.rb
puma-2.0.0.b5 lib/puma/compat.rb
puma-2.0.0.b4-java lib/puma/compat.rb
puma-2.0.0.b4 lib/puma/compat.rb