Class: Sparrowhawk::JRubyRackJarEntry

Inherits:
JarEntry show all
Defined in:
lib/sparrowhawk/jruby_rack_jar_entry.rb

Instance Attribute Summary

Attributes inherited from FileEntry

#name, #source

Instance Method Summary collapse

Methods inherited from JarEntry

#initialize, #jar_entry_name

Methods inherited from FileEntry

#content, #initialize

Constructor Details

This class inherits a constructor from Sparrowhawk::JarEntry

Instance Method Details

#jar_pathObject



5
6
7
8
9
10
11
12
13
# File 'lib/sparrowhawk/jruby_rack_jar_entry.rb', line 5

def jar_path
  return @jar_path if @jar_path
  begin
    require 'jruby-rack'
    @jar_path = JRubyJars.jruby_rack_jar_path
  rescue LoadError => err
    @jar_path = jar_path_from_load_error(err)
  end
end