Sha256: e66d29c3aeddc05a9c8b05005aa96ea441f737df71b08d80fdb39a5ede1588f0
Contents?: true
Size: 568 Bytes
Versions: 24
Compression:
Stored size: 568 Bytes
Contents
class String #ruby returns nil when nothing is stripped def strip_or_self tmp = self.strip! if tmp.nil? self else tmp end end def split_it(char) tmp = self.split(char) if tmp.nil? [self] else tmp end end =begin def fill(pieces={}) WidgetList::Utils::fill(pieces,self) end =end =begin def [](*args) obj = self.dup unless obj.nil? if args.first.class.name == 'Integer' obj = [] else obj = {} end obj[args.first] end obj end =end end
Version data entries
24 entries across 24 versions & 1 rubygems