Class | Eymiha::Envelope |
In: |
lib/eymiha/util/envelope.rb
|
Parent: | BaseEnvelope |
An Envelope is the minimum envelope that will completely contain a set of values. Values may be added to an instance, and it can return the number of values considered so far and its high and low boundaries.
Envelopes can be used to generate ranges, however the result may be of limited utility if the types of values being enveloped don‘t play nicely with ranges.
Creates and returns an instance. If an argument is given, it is passed to the set method to initialize the new instance.
Adds a value to the instance. When
The modified instance is returned.
Returns true if the instance completely contains the argument:
Returns the high boundary of the instance.
Returns the low boundary of the instance.