Class: String

Inherits:
Object show all
Defined in:
lib/scruby/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#encodeObject

:nodoc:



2
3
4
# File 'lib/scruby/core_ext/string.rb', line 2

def encode #:nodoc:
  [self.size & 255].pack('C*') + self[0..255]
end