lib/archive.rb in encbs-0.2.1.alpha vs lib/archive.rb in encbs-0.2.1.beta1

- old
+ new

@@ -20,10 +20,10 @@ class Archive attr_reader :type def initialize type - fail "Error" unless [:lzo, :gzip].include? type.downcase + puts_fail "Unsupported type" unless [:lzo, :gzip].include? type.downcase instance_eval %{@type = #{type.to_s.upcase}} end def method_missing name, *args StringIO.new @type.send(name, *args) \ No newline at end of file