Class: Sparrowhawk::JarEntry

Inherits:
FileEntry show all
Defined in:
lib/sparrowhawk/jar_entry.rb

Instance Attribute Summary

Attributes inherited from FileEntry

#name, #source

Instance Method Summary collapse

Methods inherited from FileEntry

#content

Constructor Details

#initializeJarEntry

Returns a new instance of JarEntry.



5
6
7
# File 'lib/sparrowhawk/jar_entry.rb', line 5

def initialize
  super jar_entry_name, jar_path
end

Instance Method Details

#jar_entry_nameObject



9
10
11
# File 'lib/sparrowhawk/jar_entry.rb', line 9

def jar_entry_name
  "WEB-INF/lib/#{File.basename(jar_path)}"
end

#jar_pathObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/sparrowhawk/jar_entry.rb', line 13

def jar_path
  raise NotImplementedError, "#jar_path should be implemented by a subclass"
end