Class: Superfeature::Limit::Unlimited
- Defined in:
- lib/superfeature.rb
Overview
Unlimited is treated like a Soft, initialized with infinity values. It is recommended to set a ‘soft_limit` value based on the technical limitations of your application unless you’re running a theoritcal Turing Machine.
See en.wikipedia.org/wiki/Turing_machine for details.
Constant Summary collapse
- INFINITY =
Float::INFINITY
Instance Attribute Summary
Attributes inherited from Soft
#hard_limit, #quantity, #soft_limit
Attributes inherited from Hard
Instance Method Summary collapse
-
#initialize(quantity: nil, hard_limit: INFINITY, soft_limit: INFINITY) ⇒ Unlimited
constructor
A new instance of Unlimited.
Methods inherited from Soft
Methods inherited from Hard
#enabled?, #exceeded?, #remaining