Class: JsTestServer::Server::Resources::FrameworkFile

Inherits:
File
  • Object
show all
Defined in:
lib/js_test_server/server/resources/framework_file.rb

Constant Summary

Constants inherited from File

JsTestServer::Server::Resources::File::MIME_TYPES

Instance Method Summary collapse

Methods inherited from File

#relative_path, render_file

Instance Method Details

#absolute_pathObject



12
13
14
# File 'lib/js_test_server/server/resources/framework_file.rb', line 12

def absolute_path
  @absolute_path ||= ::File.expand_path("#{framework_path}#{relative_path.gsub(%r{^/framework}, "")}")
end