Method: Node::Compiler#mempath

Defined in:
lib/node/compiler.rb

#mempath(path) ⇒ Object



132
133
134
135
136
# File 'lib/node/compiler.rb', line 132

def mempath(path)
  path = File.expand_path(path)
  raise 'Logic error in mempath' unless @project_root == path[0...(@project_root.size)]
  "#{MEMFS}#{path[(@project_root.size)..-1]}"
end