module Gemmy::Patches::SymbolPatch::InstanceMethods::Variablize
Public Instance Methods
variablize()
click to toggle source
facets take a symbol and make it fine for an instance variable name
# File lib/gemmy/patches/symbol_patch.rb, line 23 def variablize name = to_s.gsub(/\W/, '_') "@#{name}".to_sym end