Class: Barrage::Generators::Pid
- Defined in:
- lib/barrage/generators/pid.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #generate ⇒ Object (also: #current)
Methods inherited from Base
Constructor Details
This class inherits a constructor from Barrage::Generators::Base
Instance Method Details
#generate ⇒ Object Also known as: current
6 7 8 |
# File 'lib/barrage/generators/pid.rb', line 6 def generate Process.pid & (2 ** length-1) end |