I'm wondering if there is a more idiomatic way to do the following?
Can Array.collect be used to extract a subset of an array?
Peter
Can
class ProcessInfo < Array
def findByRealm(realm)
result = ProcessInfo.new
each { |process|
if process['realm'] == realm
result << process
end
}
return result
end
end