Method: Inflections.deconstantize

Defined in:
lib/build/ExtendedString.rb

.deconstantize(path) ⇒ Object

Removes the rightmost segment from the constant expression in the string. See also demodulize.



340
341
342
# File 'lib/build/ExtendedString.rb', line 340

def deconstantize(path)
  path.to_s[0, path.rindex('::') || 0] # implementation based on the one in facets' Module#spacename
end