Method: Consult::Utilities#resolve

Defined in:
lib/consult/utilities.rb

#resolve(path) ⇒ Object



5
6
7
8
9
# File 'lib/consult/utilities.rb', line 5

def resolve(path)
  return unless path
  pathname = Pathname.new(path)
  pathname.relative? ? Consult.root.join(pathname) : pathname
end