lib/java_buildpack/util/space_case.rb
# Converts a string to space case.  For example, the Spring +SpaceCase+ would become +Space Case+.
#
# @return [String] The space case rendering of this +String+
Converts a string to space case.  For example, the Spring +SpaceCase+ would become +Space Case+.
Converts a string to space case . For example the Spring + SpaceCase + would become + Space Case + .
def space_case
    split('::')
      .last
      .gsub(/([A-Z]+)([A-Z][a-z])/, '\1 \2')
      .gsub(/([a-z\d])([A-Z])/, '\1 \2')
      .tr('-', ' ')
  end
def space_case split ( '::' ) . last . gsub ( / ([A-Z]+)([A-Z][a-z]) / , '\1 \2' ) . gsub ( / ([a-z \d ])([A-Z]) / , '\1 \2' ) . tr ( '-' , ' ' ) end
Converts a string to space case.
Converts a string to space case .
The space case rendering of this +String+
The space case rendering of this + String +
String