Class: Mindee::Geometry::MinMax
- Inherits:
-
Object
- Object
- Mindee::Geometry::MinMax
- Defined in:
- lib/mindee/geometry/min_max.rb
Overview
A set of minimum and maximum values.
Instance Attribute Summary collapse
-
#max ⇒ Float
readonly
Maximum.
-
#min ⇒ Float
readonly
Minimum.
Instance Method Summary collapse
-
#initialize(min, max) ⇒ MinMax
constructor
A new instance of MinMax.
Constructor Details
#initialize(min, max) ⇒ MinMax
Returns a new instance of MinMax.
17 18 19 20 |
# File 'lib/mindee/geometry/min_max.rb', line 17 def initialize(min, max) @min = min @max = max end |
Instance Attribute Details
#max ⇒ Float (readonly)
Maximum
13 14 15 |
# File 'lib/mindee/geometry/min_max.rb', line 13 def max @max end |
#min ⇒ Float (readonly)
Minimum
10 11 12 |
# File 'lib/mindee/geometry/min_max.rb', line 10 def min @min end |