[MacRuby-devel] convert array into a string

Joel Reymont joelr1 at gmail.com
Mon Jan 10 13:29:42 PST 2011


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 Array#pack for more information.

How do I lookup documentation?

	Thanks, Joel

---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont



More information about the MacRuby-devel mailing list