Class: Custodian::Samplers::Who
- Defined in:
- lib/custodian/samplers/darwin/who.rb
Class Method Summary collapse
Methods inherited from Sampler
compatible?, describe, description
Methods included from Utilities
directory_exists?, file_exists?, program_exists?
Class Method Details
.sample ⇒ Object
7 8 9 |
# File 'lib/custodian/samplers/darwin/who.rb', line 7 def self.sample `who`.lines.collect { |line| line.split.first }.uniq end |