Permalink
Browse files

Add Warbler::Jar example

  • Loading branch information...
1 parent f5f5276 commit 1885b1377834cafcd424e4b69a43ffb3032aadf2 @nicksieger committed Nov 14, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 jar/jar.rb
  2. BIN jar/sample.jar
View
@@ -0,0 +1,6 @@
+require 'warbler'
+jar = Warbler::Jar.new
+jar.files["directory"] = nil # directory entry
+jar.files["inline.txt"] = StringIO.new("in memory")
+jar.files["path/a.txt"] = "a.txt" # disk file
+jar.create("sample.jar")
View
Binary file not shown.

0 comments on commit 1885b13

Please sign in to comment.