Class: Boundary
- Inherits:
-
Struct
- Object
- Struct
- Boundary
- Defined in:
- lib/math_demo/triangle_point.rb
Overview
we are looking for excluded values
Instance Attribute Summary collapse
-
#lower ⇒ Object
Returns the value of attribute lower.
-
#upper ⇒ Object
Returns the value of attribute upper.
Instance Method Summary collapse
Instance Attribute Details
#lower ⇒ Object
Returns the value of attribute lower
41 42 43 |
# File 'lib/math_demo/triangle_point.rb', line 41 def lower @lower end |
#upper ⇒ Object
Returns the value of attribute upper
41 42 43 |
# File 'lib/math_demo/triangle_point.rb', line 41 def upper @upper end |
Instance Method Details
#exclude?(val) ⇒ Boolean
42 43 44 |
# File 'lib/math_demo/triangle_point.rb', line 42 def exclude?(val) true unless (lower...upper).cover? val end |