Class: WOR::Helpers

Inherits:
Object
  • Object
show all
Defined in:
lib/wor/helpers.rb

Class Method Summary collapse

Class Method Details

.get_parent_directory_name(path) ⇒ Object



4
5
6
7
# File 'lib/wor/helpers.rb', line 4

def get_parent_directory_name path
  parent_path = File.expand_path("..", path)
  return File.basename parent_path
end