Module: Paneron::Register::Hierarchical

Defined in:
lib/paneron/register/hierarchical.rb

Class Method Summary collapse

Class Method Details

.split_path(full_path) ⇒ Object

def self.included(base)

base.class_eval do
end

end Split into parent path and base name



12
13
14
15
16
17
18
19
20
21
# File 'lib/paneron/register/hierarchical.rb', line 12

def self.split_path(full_path)
  # {
  #   parent_path: File.dirname(full_path),
  #   basename: File.basename(full_path),
  # }
  [
    File.dirname(full_path),
    File.basename(full_path),
  ]
end