ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: how to read this
by Sven Schott other posts by this author
Nov 6 2009 1:12PM messages near this date
how to read this | Re: how to read this
I have usually found that either the base class or file usually have the
details for usage. I admit the digest class docs are a bit sparse but they
are there.

http://www.ruby-doc.org/stdlib/libdoc/digest/rdoc/classes/Digest/Class.html

It shows an example for both a string and a file. As for the require, I
usually just require the file or folder at the base of the list of files. In
this case it is 'digest'.

On Sat, Nov 7, 2009 at 2:00 AM, msoulier <msoulier@[...].com>  wrote:

>  I was recently looking to compute a sha1 hash in ruby, and l luckily
>  google turned up a quick example because I found the digest docs here
>  http://www.ruby-doc.org/stdlib/ very cryptic and difficult to read.
> 
>  How am I to interpret what I see in the digest api docs? There's no
>  example, not even an obvious entry point. How do I look at that doc
>  and know what I need to "require" and then what classes I'll be using
>  to accomplish my task?
> 
>  Luckily this dude and google to the rescue
>  http://snippets.dzone.com/posts/show/83.
> 
>  Mike
> 
> 
Thread:
Msoulier
Sven Schott
Msoulier
Brian Candler

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved