Hi all, I am new to Ruby programming language. I know that require ''gemname'' is used for using some gems in our application. I have a sample application developed in Ruby on Rails which have the following lines of code: require ''zlib'' require ''stringio'' Can you plz help me to know what these gems are used for. It would be very helpful if you could give some hyperlinks to some articles that explains them in detail.. Thanks in advance, Janeve -- Posted via http://www.ruby-forum.com/.
Ohh.. Thanks for the correction.. :) Janeve -- Posted via http://www.ruby-forum.com/.
Janeve George wrote:> Hi all, > > I am new to Ruby programming language. I know that require ''gemname'' is > used for using some gems in our application. I have a sample application > developed in Ruby on Rails which have the following lines of code: > > require ''zlib'' > require ''stringio'' > > Can you plz help me to know what these gems are used for. It would be > very helpful if you could give some hyperlinks to some articles that > explains them in detail.. > > Thanks in advance, > JaneveThose are not gems, they are part of the standard library. Documentation for them can be found at ruby-doc.org: http://www.ruby-doc.org/stdlib/ -- Posted via http://www.ruby-forum.com/.
On Aug 9, 2006, at 5:03 AM, Janeve George wrote:> Hi all, > > I am new to Ruby programming language. I know that require > ''gemname'' is > used for using some gems in our application. I have a sample > application > developed in Ruby on Rails which have the following lines of code: > > require ''zlib'' > require ''stringio'' > > Can you plz help me to know what these gems are used for. It would be > very helpful if you could give some hyperlinks to some articles that > explains them in detail.. > > Thanks in advance, > Janevehttp://www.google.com/search?q=ruby+zlib http://www.google.com/search?q=ruby+stringio
Janeve George wrote:> Hi all, > > I am new to Ruby programming language. I know that require ''gemname'' is > used for using some gems in our application. I have a sample application > developed in Ruby on Rails which have the following lines of code: > > require ''zlib'' > require ''stringio'' > > Can you plz help me to know what these gems are used for. It would be > very helpful if you could give some hyperlinks to some articles that > explains them in detail.. > > Thanks in advance, > Janeve >Well, zlib is for compression (ZIP handling), stringio I''m not sure about. Regards, Henning Kilset
On Wed, Aug 09, 2006 at 11:03:03AM +0200, Janeve George wrote:> I am new to Ruby programming language. I know that require ''gemname'' is > used for using some gems in our application. I have a sample application > developed in Ruby on Rails which have the following lines of code: > > require ''zlib''Compression routines. "ri Zlib"> require ''stringio''Pretending that strings are files. "ri StringIO"> Can you plz help me to know what these gems are used for. It would beThey''re not gems, they''re classes in the standard library.> very helpful if you could give some hyperlinks to some articles that > explains them in detail..I think the documentation that ships with Ruby is pretty comprehensive. Google can help more, or asking a specific question on the ruby-talk mailing list (since neither class is Rails-specific). - Matt
Reasonably Related Threads
- Bad file descriptor - connect(2)
- PostgreSQL, postgres gem, rails2.pdf, http://ruby.scripting.ca/postgres/ confusion...
- Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82
- Freezing Architecture-Dependent Gems such as Rmagick, Ferret, Unicode
- Multiple file uploads - only one file object gets posted