From: Robert Klemme Date: 2010-06-03T00:19:07+09:00 Subject: Re: PRE DETERMINE THE SIZE OF A STRING PLEASE DO NOT SHOUT. 2010/6/2 kevid : > please, is there a way to pre-determine the size (or capacity) of a > string in ruby? > > i.e if a have a string "str" , i will set it to contain characters not > more than 10. No, strings in Ruby are unbounded. If you need that functionality you will have to create a class which implements this. (Note: Ruby != C) :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/