Class: RoCommands::RoProcs
- Defined in:
- lib/ro_commands/ro_procs.rb
Defined Under Namespace
Classes: RoProc
Instance Attribute Summary collapse
-
#rps ⇒ Object
Returns the value of attribute rps.
Instance Method Summary collapse
Methods inherited from Base
describe, inherited, method_added, meths, start, usage
Methods included from Bash
#_bash, #add_time, #bash, #bash_capture, #bash_capture_array, #bash_lines, #bash_per, #bash_system, #bundle_exec, #err, err, #handle_path, #kernel_system, out, #out, #status, status
Instance Attribute Details
#rps ⇒ Object
Returns the value of attribute rps.
3 4 5 |
# File 'lib/ro_commands/ro_procs.rb', line 3 def rps @rps end |
Instance Method Details
#grep(*keywords) ⇒ Object
21 22 23 24 |
# File 'lib/ro_commands/ro_procs.rb', line 21 def grep(*keywords) rps_with(keywords) create_table end |
#pids(*keywords) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/ro_commands/ro_procs.rb', line 9 def pids(*keywords) rps_with keywords pids = procs.map do |rp| rp.instance_variable_get(:@pid) end create_table puts pids pids end |