Class: Mutant::Variable::IVar Private
- Inherits:
-
Mutant::Variable
- Object
- Mutant::Variable
- Mutant::Variable::IVar
- Defined in:
- lib/mutant/variable.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Shared variable that can be written at most once
ignore :reek:InstanceVariableAssumption
Defined Under Namespace
Classes: Error
Constant Summary
Constants inherited from Mutant::Variable
Instance Method Summary collapse
-
#put(value) ⇒ self
private
Put valie into the mvar, raises if already full.
Methods inherited from Mutant::Variable
#initialize, #read, #take, #take_timeout, #try_put, #with
Constructor Details
This class inherits a constructor from Mutant::Variable
Instance Method Details
#put(value) ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Put valie into the mvar, raises if already full
210 211 212 213 214 215 216 217 |
# File 'lib/mutant/variable.rb', line 210 def put(value) synchronize do fail Error, 'is immutable' if full? perform_put(value) end self end |