Sha256: c4c459dd07a2a0fac47a15826b18a9f12b89eeff6864bd7f3820ce5a1e76cba9
Contents?: true
Size: 230 Bytes
Versions: 13
Compression:
Stored size: 230 Bytes
Contents
class Symbol # Prepend an "@" to the beginning of a symbol # to make a instance variable name. This also replaces # non-valid characters with underscores. def variablize "@#{self}".gsub(/\W/, '_').to_sym end end
Version data entries
13 entries across 13 versions & 2 rubygems