Method: Postview::Settings#path_to

Defined in:
lib/postview/settings.rb

#path_to(name, *paths) ⇒ Object

Returns a valid directory loaded from settings file.



118
119
120
121
# File 'lib/postview/settings.rb', line 118

def path_to(name, *paths)
  return Pathname.new(directories[name], *paths) if directories[name].match(%r{^/.*})
  Postview::path.join(directories[name], *paths)
end