Skip to content

Commit

Permalink
Add Warbler::Jar example
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksieger committed Nov 14, 2010
1 parent f5f5276 commit 1885b13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jar/jar.rb
@@ -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")
Binary file added jar/sample.jar
Binary file not shown.

0 comments on commit 1885b13

Please sign in to comment.