Module: Pretentious::DdtUtils

Defined in:
lib/pretentious.rb

Overview

misc convenience tools

Class Method Summary collapse

Class Method Details

.to_underscore(str) ⇒ Object



71
72
73
# File 'lib/pretentious.rb', line 71

def self.to_underscore(str)
  str.gsub(/(.)([A-Z])/, '\1_\2').downcase
end