Module: ExtString

Defined in:
lib/ext.rb

Instance Method Summary collapse

Instance Method Details

#snake_caseObject



2
3
4
# File 'lib/ext.rb', line 2

def snake_case
  gsub(/\B[A-Z]/, '_\&').downcase
end