Sha256: 251fcc53d7ac25372646ffba69debff44a92dca0a74ba6db4e330454023a66ca
Contents?: true
Size: 316 Bytes
Versions: 24
Compression:
Stored size: 316 Bytes
Contents
# Add method to ruby class String # ############################### class String def comment? self[0]=='#' # self[0]==35 # check if first char is # end def to_code s= self.dup s.downcase.strip.gsub(' ','_').gsub(/[^#_\/a-zA-Z0-9]/,'') end end
Version data entries
24 entries across 24 versions & 2 rubygems