On 11/01/2011, at 10:29 AM, Joel Reymont wrote:
> How do I lookup documentation?
In your terminal
ri Array#pack
or Google.
Henry
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/mac
On Jan 10, 2011, at 9:19 PM, Laurent Sansonetti wrote:
> Assuming your array contains ASCII fixnum representation of characters,
> messaging #pack('c*') on it should give you a string object back.
Do you mean something like [-188,-185,-186].#pack('c*') ?
> You can look up the documentation of
On Jan 10, 2011, at 1:22 PM, Caio Chassot wrote:
> On 2011-01-10, at 19:19 , Laurent Sansonetti wrote:
>>
>> Assuming your array contains ASCII fixnum representation of characters,
>> messaging #pack('c*') on it should give you a string object back.
>>
>> I dislike this method, but here I don't
On 2011-01-10, at 19:19 , Laurent Sansonetti wrote:
>
> Assuming your array contains ASCII fixnum representation of characters,
> messaging #pack('c*') on it should give you a string object back.
>
> I dislike this method, but here I don't see a better choice.
numbers = [65, 195, 169]
s = numbe
Assuming your array contains ASCII fixnum representation of characters,
messaging #pack('c*') on it should give you a string object back.
You can look up the documentation of Array#pack for more information.
I dislike this method, but here I don't see a better choice.
Laurent
On Jan 10, 2011,