Sha256: bdf4f2c292801f0acc49eabd54a4f9bc6e758dda6901d9884d3927c1166b35be
Contents?: true
Size: 252 Bytes
Versions: 4
Compression:
Stored size: 252 Bytes
Contents
class String # To get string of required length def req_length_string(min, max) req_string = (self.length < min) ? self.rjust(min,'O') : self req_string = (req_string.length > max) ? req_string[0,max] : req_string req_string end end
Version data entries
4 entries across 4 versions & 1 rubygems