Skip to content

Commit

Permalink
add Class interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Fisher authored and ianlevesque committed Feb 23, 2010
1 parent fad302a commit 5e23f50
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/lzma.rb
Expand Up @@ -20,4 +20,13 @@ def decompress(data)
String.from_java_bytes @lzma.decompress(data.to_java_bytes)
end
end
end
end

class LZMA
def self.decompress(data)
LZMA.new.decompress(data)
end
def self.compress(data)
LZMA.new.compress(data)
end
end

0 comments on commit 5e23f50

Please sign in to comment.