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
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/puma-2.6.0/lib/puma/compat.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/puma-2.6.0/lib/puma/compat.rb
puma-2.6.0-java lib/puma/compat.rb
puma-2.6.0 lib/puma/compat.rb
puma-2.5.1-java lib/puma/compat.rb
puma-2.5.1 lib/puma/compat.rb
puma-2.5.0-java lib/puma/compat.rb
puma-2.5.0 lib/puma/compat.rb
puma-2.4.1-java lib/puma/compat.rb
puma-2.4.1 lib/puma/compat.rb
puma-2.4.0-java lib/puma/compat.rb
puma-2.4.0 lib/puma/compat.rb
puma-2.3.2-java lib/puma/compat.rb
puma-2.3.2 lib/puma/compat.rb
puma-2.3.1-java lib/puma/compat.rb
puma-2.3.1 lib/puma/compat.rb
puma-2.3.0-java lib/puma/compat.rb
puma-2.3.0 lib/puma/compat.rb
puma-2.2.2-java lib/puma/compat.rb
puma-2.2.2 lib/puma/compat.rb