Module: Jets::Router::Util
Instance Method Summary collapse
Instance Method Details
#underscore(str) ⇒ Object
3 4 5 6 |
# File 'lib/jets/router/util.rb', line 3 def underscore(str) return unless str str.to_s.gsub(/[^a-zA-Z0-9]/,'_') end |
3 4 5 6 |
# File 'lib/jets/router/util.rb', line 3 def underscore(str) return unless str str.to_s.gsub(/[^a-zA-Z0-9]/,'_') end |