Class: Numeric
Instance Method Summary collapse
-
#finite? ⇒ Boolean
Dummy defintion for all numerics.
-
#max(b) ⇒ Object
Provide in operator form.
-
#min(b) ⇒ Object
Provide in operator form.
Methods included from MathViz::Measurable
Methods included from MathViz::Units::Class
Instance Method Details
#finite? ⇒ Boolean
Dummy defintion for all numerics. Normally only defined on things where it can possible return false.
231 232 233 |
# File 'lib/mathviz.rb', line 231 def finite? true end |
#max(b) ⇒ Object
Provide in operator form
221 222 223 |
# File 'lib/mathviz.rb', line 221 def max(b) [self, b].max end |
#min(b) ⇒ Object
Provide in operator form
226 227 228 |
# File 'lib/mathviz.rb', line 226 def min(b) [self, b].min end |