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

Version Path
nilac-0.0.4.3.9.8 lib/nilac/find_file_path.rb
nilac-0.0.4.3.9.7.1 lib/nilac/find_file_path.rb
nilac-0.0.4.3.9.7 lib/nilac/find_file_path.rb
nilac-0.0.4.3.9.6 lib/nilac/find_file_path.rb
nilac-0.0.4.3.9.5 lib/nilac/find_file_path.rb
nilac-0.0.4.3.9.4 lib/nilac/find_file_path.rb
nilac-0.0.4.3.9.3 lib/nilac/find_file_path.rb