lib/hawatel_ps/linux/proc_table.rb
# Refresh list of current running processes
#
# @example
#   refresh()
#
# @return [Array<ProcInfo>] array of ProcInfo objects
Refresh list of current running processes
Refresh list of current running processes
def refresh
          @proc_table = Array.new
          ProcFetch.get_process.each do |proc_attrs|
            @proc_table.push(ProcInfo.new(proc_attrs))
          end
          childs_tree
        end
def refresh @proc_table = Array . new ProcFetch . get_process . each do | proc_attrs | @proc_table . push ( ProcInfo . new ( proc_attrs ) ) end childs_tree end
Refresh list of current running processes
Refresh list of current running processes
array of ProcInfo objects
array of ProcInfo objects
Array<ProcInfo>
example
None