[Rails] struct square brackets method used to instantiate?

2012-10-01 Thread John Merlino
I know that Struct class defines the [] instance method: 1.9.3p0 :014 Struct.instance_methods(false) = [:==, :eql?, :hash, :inspect, :to_s, :to_a, :values, :size, :length, :each, :each_pair, : [], : []=, :select, :values_at, :members, :pretty_print, :pretty_print_cycle, :as_json] This allows

Re: [Rails] struct square brackets method used to instantiate?

2012-10-01 Thread Ignacio Piantanida
2012/10/1 John Merlino stoici...@aol.com I know that Struct class defines the [] instance method: 1.9.3p0 :014 Struct.instance_methods(false) = [:==, :eql?, :hash, :inspect, :to_s, :to_a, :values, :size, :length, :each, :each_pair, : [], : []=, :select, :values_at, :members,