class String
Public Instance Methods
to_method()
click to toggle source
# File lib/mohawk/core_ext/string.rb, line 2 def to_method self.gsub(/\W+/, "_").downcase.to_sym end
# File lib/mohawk/core_ext/string.rb, line 2 def to_method self.gsub(/\W+/, "_").downcase.to_sym end