Charlie wrote:
> Sorry, but I find it difficult to understand as I'm new to it. Would 
> be helpful if you can enlighten me with some examples. Thanks.

Try using IRB (type `irb' in the console):

   >> X = 10
   => 10
   >> X = 20
      warning: already initialized constant X
   => 20


Daniel