Displaying 1 result from an estimated 1 matches for "d416".
Did you mean:
416
2006 Mar 16
3
Passing function names from string variables
...ray = Array.new
@tmphash = Hash.new
for object in @objects
if ! @tmphash.has_key?(object.@attr.to_s)
@tmphash[object.@attr.to_s] = Array.new
end
@tmphash[object.@attr.to_s].push(object)
end
end
Where the method name is the @attr value.
--
Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada