From: Brian Candler Date: 2010-06-03T00:20:29+09:00 Subject: Re: PRE DETERMINE THE SIZE OF A STRING kevid wrote: > please, is there a way to pre-determine the size (or capacity) of a > string in ruby? Nope, strings are resized dynamically as required. But you could make your own class which does this. It could, for example, delegate to an underlying String object, intercepting calls which could make the string bigger, and either raise an error or truncate the error if it exceeds the chosen size. -- Posted via http://www.ruby-forum.com/.