Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/sincli/utils/string.rb

Instance Method Summary collapse

Instance Method Details

#dash_caseObject



2
3
4
# File 'lib/sincli/utils/string.rb', line 2

def dash_case
  parameterize.dasherize
end

#snake_caseObject



6
7
8
# File 'lib/sincli/utils/string.rb', line 6

def snake_case
  parameterize.underscore
end