Method: Counter#initialize
- Defined in:
- lib/wire.rb
#initialize ⇒ Counter
Returns a new instance of Counter.
63 64 65 66 67 |
# File 'lib/wire.rb', line 63 def initialize extend(MonitorMixin) @i = 0 @cond = new_cond end |
Returns a new instance of Counter.
63 64 65 66 67 |
# File 'lib/wire.rb', line 63 def initialize extend(MonitorMixin) @i = 0 @cond = new_cond end |