Sha256: f37fbf59685b9414761d1a4d5b7368d4f31e6201fae5d685dca4780fc4416b71
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true module JSONAPIHelpers module StringSupport module_function def camel(string) string.underscore.camelize end def camel_lower(string) string.underscore.camelize(:lower) end def dash(string) string.underscore.dasherize end def underscore(string) string.underscore end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsonapi_helpers-0.2.0 | lib/jsonapi_helpers/support/string_support.rb |