Sha256: f3bdb7c6b8028500774049c45fddd663071f83f2c2558276c224639a7801d4a5
Contents?: true
Size: 281 Bytes
Versions: 8
Compression:
Stored size: 281 Bytes
Contents
# extracted from Extlib. # FIXME: what's the licensing here? class String def camel_case return self if self !~ /_/ && self =~ /[A-Z]+.*/ split('_').map{|e| e.capitalize}.join end def blank? strip.empty? end end class NilClass def blank? true end end
Version data entries
8 entries across 8 versions & 1 rubygems