lib/core/facets/string/variablize.rb in facets-2.4.4 vs lib/core/facets/string/variablize.rb in facets-2.4.5

- old
+ new

@@ -3,10 +3,11 @@ # Prepend an "@" to the beginning of a string # to make a instance variable name. This also replaces # non-valid characters with underscores. def variablize - "@#{self}".gsub(/\W/, '_').to_s + v = gsub(/\W/, '_') + "@#{v}" end end