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
Try looking in the Fixnum class for methods like &, |, ~, <<, and >>.
James Edward Gray II
···
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.
$ 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
YEAH! Thanks a lot!
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> *
would do.
Meino
···
From: James Edward Gray II <james@grayproductions.net>
Subject: Re: bit/byte operations
Date: Tue, 28 Jun 2005 12:30:38 +0900
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
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.yubnub.org/
and the grd (Google ruby-doc) command
Google accepts assorted quasi regexen stuff, too.
James
···
--
http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
ToddG
(ToddG)
29 June 2005 00:40
6
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