Sha256: 4f7780f4323f0ae21ef16b7ba6c2da12fe3f2aead7583c2973cd37ba664b3812
Contents?: true
Size: 318 Bytes
Versions: 7
Compression:
Stored size: 318 Bytes
Contents
def find_file_path(input_path, file_extension) extension_remover = input_path.split(file_extension) remaining_string = extension_remover[0].reverse path_finder = remaining_string.index("/") remaining_string = remaining_string.reverse return remaining_string[0...remaining_string.length-path_finder] end
Version data entries
7 entries across 7 versions & 1 rubygems