From: botp Date: 2011-02-04T01:55:42+09:00 Subject: Re: Setter method for Hash value On Fri, Feb 4, 2011 at 12:12 AM, Rolf Pedersen wrote: >        def props[key]=(value)       # Not a valid construct just a crude example, class C def initialize @h={} end def [](index) @h[index] end def []=(index,value) @h[index]=value end def h @h end end #=> nil c=C.new #=> # c[:a]=1 #=> 1 c[:b]=2 #=> 2 c[:a] #=> 1 c.h #=> {:a=>1, :b=>2} c #=> #1, :b=>2}> best regards -botp