From: Ruby Newbee Date: 2010-02-04T12:50:08+09:00 Subject: Re: hooking subscript operations in a hash Hello, I have two questions. > > class RalphMod < Hash >  def []=(index, value) >    p index >    p value >    if index == 'PATH_INFO' and value == '/undefined' >      puts 'found it!' >    end >    super index, value what's the "super" here? is it coming from which object? >  end > end > > env = RalphMod.new() > env['X'] = 'Y' > env['PATH_INFO'] = '/undefined' > Is env['X'] = 'Y' the same as env[]=('X','Y') ? Since you defined a method with def []= so I think env[]=('X','Y') is easier for understanding. Thanks.