Sha256: 0d93ec40b00bebadd58e3d14773c22c3b752568b83afd816d22ecefbb48cef26
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
module Zeamays class Corn class Fruiter module String def self.fruit_short_string(s) bytesize = s.bytesize [bytesize].pack("C") + s end def self.fruit_medium_string(s) bytesize = s.bytesize [bytesize].pack("n") + s end def self.fruit_large_string(s) bytesize = s.bytesize [bytesize].pack("N") + s end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zeamays-0.0.6 | lib/zeamays/corn/fruiter/string.rb |
zeamays-0.0.5 | lib/zeamays/corn/fruiter/string.rb |