Skip to content

Instantly share code, notes, and snippets.

@mokolabs
Created June 12, 2012 23:53
Show Gist options
  • Select an option

  • Save mokolabs/2920883 to your computer and use it in GitHub Desktop.

Select an option

Save mokolabs/2920883 to your computer and use it in GitHub Desktop.

Revisions

  1. mokolabs created this gist Jun 12, 2012.
    8 changes: 8 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    def initialize(file)
    begin
    file = Zlib::GzipReader.open(file).read
    rescue
    end

    @stencil = Plist::parse_xml(file)
    end