Class: Sparrowhawk::JarEntry
Instance Attribute Summary
Attributes inherited from FileEntry
#name, #source
Instance Method Summary
collapse
Methods inherited from FileEntry
#content
Constructor Details
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_name ⇒ Object
9
10
11
|
# File 'lib/sparrowhawk/jar_entry.rb', line 9
def jar_entry_name
"WEB-INF/lib/#{File.basename(jar_path)}"
end
|
#jar_path ⇒ Object
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
|