Method: Sys::ProcTable::CgroupEntry#initialize
- Defined in:
- lib/linux/sys/proctable/cgroup_entry.rb
#initialize(string) ⇒ CgroupEntry
Create a new cgroup entry object
This expects a string of ‘7:devices:/init.scope’ - see ‘man 5 proc` for a reference.
20 21 22 23 24 25 |
# File 'lib/linux/sys/proctable/cgroup_entry.rb', line 20 def initialize(string) @string = string.chomp @fields = @string.split(/:/) rescue @fields = [] end |