module JSONAPIHelpers::StringSupport
Public Instance Methods
camel(string)
click to toggle source
# File lib/jsonapi_helpers/support/string_support.rb, line 7 def camel(string) string.underscore.camelize end
camel_lower(string)
click to toggle source
# File lib/jsonapi_helpers/support/string_support.rb, line 11 def camel_lower(string) string.underscore.camelize(:lower) end
dash(string)
click to toggle source
# File lib/jsonapi_helpers/support/string_support.rb, line 15 def dash(string) string.underscore.dasherize end
underscore(string)
click to toggle source
# File lib/jsonapi_helpers/support/string_support.rb, line 19 def underscore(string) string.underscore end