[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

bit/byte operations

Meino Christian Cramer

6/28/2005 3:25:00 AM

5 Answers

James Gray

6/28/2005 3:31:00 AM

0

On Jun 27, 2005, at 10:24 PM, Meino Christian Cramer wrote:

> Hi,
>
> I am looking for bit operatios like left/right shift, rotate
> left/right, exor-ing/or-ing/and-ing/not-ing of single bits and groups
> of bits.
>
> The problem...I dont know, what keyword to feed into ri.

Try looking in the Fixnum class for methods like &, |, ~, <<, and >>.

James Edward Gray II



Gennady

6/28/2005 3:37:00 AM

0

$ ri '<<'

It gives you all classes containing method '<<', witch for Fixnum
means left bit shift.

Gennady.

On Jun 27, 2005, at 20:24, Meino Christian Cramer wrote:

> Hi,
>
> I am looking for bit operatios like left/right shift, rotate
> left/right, exor-ing/or-ing/and-ing/not-ing of single bits and groups
> of bits.
>
> The problem...I dont know, what keyword to feed into ri.
>
> I tried bit/byte/exor and suc but there was "nothing found".
>
> Where can I look for some informations?
>
> (or is it too contradictionary to look for such low level operations
> in such a highest level ( <<--only meant POSITIV!) language like
> Ruby?
>
> Thank you very much for any help in advance!
> Meino
>
>
>
>



Meino Christian Cramer

6/28/2005 3:55:00 AM

0

james_b

6/28/2005 4:32:00 AM

0

Meino Christian Cramer wrote:
>
> Is there a way to search "inexactly" or "blurred" (or how should I
> say in English?) with ri?
>
> I have the problem, that, when I am searching something, I dont know
> exactly, how it is spelled or to what Class it is assigned to.
>
> I didn't find an option for ri to do something like
>
> grep -ril <keyword> *

Not through ri itself, but ri gets its data from a set of yaml files, so
you could grep those.

Or, rub-a-dub-dub, use yubnub:

http://www.y...

and the grd (Google ruby-doc) command

Google accepts assorted quasi regexen stuff, too.

James

--

http://www.ru... - The Ruby Documentation Site
http://www.r... - News, Articles, and Listings for Ruby & XML
http://www.rub... - The Ruby Store for Ruby Stuff
http://www.jame... - Playing with Better Toys


tdgrmsn@gmail.com

6/29/2005 12:36:00 AM

0

> Is there a way to search "inexactly" or "blurred" (or how should I say in English?) with ri?
>

"Fuzzy" is commonly used to refer to a non-exact search