From: "Pavel R." Date: 2010-12-22T00:56:52+09:00 Subject: Re: Regexp, String, Symbol literals' object_ids Example: class A def m a,b,c,d = data.unpack('NNvv') e,f,g,h = a.unpack('vNNv') # and so on ... # do something with data end end To prevent 'NNvv' again and again I can assign a constant class A Format_NNvv = 'NNvv' end and use it. But there's many different 'NNvv', 'vNNv', 'a*c', ... in my code so I need to assign all them to constants. This approach implies a large section of assigning constants. -- Posted via http://www.ruby-forum.com/.