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
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,
2 matches
Mail list logo