Module: MathViz::Measurable
Overview
Something (i.e. Numeric) which does not have MathViz::Units, but can be turned into something which does (i.e., MathViz::Constant)
Instance Method Summary collapse
-
#per ⇒ Object
return constant wrapping self with new units assigned to the denominator.
-
#unit(x) ⇒ Object
return constant wrapping self with the specified units; see also MathViz::Units::Class#new_units.
Methods included from Units::Class
Instance Method Details
#per ⇒ Object
return constant wrapping self with new units assigned to the denominator
173 174 175 |
# File 'lib/mathviz.rb', line 173 def per MathViz::Constant.new(self).per end |
#unit(x) ⇒ Object
return constant wrapping self with the specified units; see also MathViz::Units::Class#new_units
168 169 170 |
# File 'lib/mathviz.rb', line 168 def unit(x) MathViz::Constant.new(self).unit(x) end |