[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

problems with archive-tar-external

Bram Kuijper

7/31/2007 10:58:00 PM

Hi all,

as a ruby newbie I am trying to build a small script using Daniel
Berger's archive-tar-external package:
http://rubyforge.org/projec...

so I try to repeat the following example from the docs:
http://rubyforge.org/docman/view.php/735/518/archive-tar-ext...


#!/usr/bin/env ruby -w
require 'rubygems'
require 'archive/tar_external'
Include Archive

...

however, ruby will give the following error:

tarfiles.rb:8: undefined method `Include' for main:Object (NoMethodError)

does anyone know what I'm doing wrong here?

thanks,
Bram













2 Answers

Dan Zwell

8/1/2007 12:02:00 AM

0

Bram Kuijper wrote:
> #!/usr/bin/env ruby -w
> require 'rubygems'
> require 'archive/tar_external'
> Include Archive
>
> ...
"include" has a lower case "i".

Bram Kuijper

8/1/2007 9:12:00 AM

0

guess I was quite tired. Thx!

Dan Zwell wrote:
> Bram Kuijper wrote:
>> #!/usr/bin/env ruby -w
>> require 'rubygems'
>> require 'archive/tar_external'
>> Include Archive
>>
>> ...
> "include" has a lower case "i".
>