Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/squeeze_box.rb

Instance Method Summary collapse

Instance Method Details

#snake_caseObject



346
347
348
# File 'lib/squeeze_box.rb', line 346

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