examples/gzip.rb in bindata-1.8.2 vs examples/gzip.rb in bindata-1.8.3

- old
+ new

@@ -57,11 +57,11 @@ @footer = Footer.new end attr_accessor :compressed def_delegators :@header, :file_name=, :file_name - def_delegators :@header, :comment=, :comment + def_delegators :@header, :comment=, :comment, :comment? def_delegators :@header, :compression_method def_delegators :@footer, :crc32, :uncompressed_size def mtime Time.at(@header.mtime.snapshot) @@ -151,10 +151,10 @@ g.mtime.strftime('%H:%M'), g.total_size, g.uncompressed_size, ratio, g.file_name] - puts "Comment: #{g.comment}" if g.comment != "" + puts "Comment: #{g.comment}" if g.comment? puts puts "Executing gzip -l -v" puts `gzip -l -v poetry.gz` end