Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/malloc_ext.rb

Overview

String#bytesize is defined if it does not exist already

Instance Method Summary collapse

Instance Method Details

#bytesizeObject

String#bytesize is defined if it does not exist already

Provided for compatibility with Ruby 1.8.6. Same as #size.



27
28
29
# File 'lib/malloc_ext.rb', line 27

def bytesize
  size
end