class Procps::Command
The column type for a command
column.
Attributes
args[R]
arguments[R]
name[R]
title[R]
to_s[R]
Public Instance Methods
inspect()
click to toggle source
# File lib/procps/column_types/command.rb, line 10 def inspect original end
Protected Instance Methods
normalize()
click to toggle source
# File lib/procps/column_types/command.rb, line 14 def normalize if @original =~ /(?<=^\[)(?<name>.+?)(?=\]$)/ @name = name elsif @original =~ /^(?<name>[A-Za-z0-9_\-]+): (?<title>.+)$/ @name = name @title = title else @name, *@arguments = Shellwords.split(@original) end end