Class: Numeric
- Includes:
- Cassowary::Equalities
- Defined in:
- lib/ext/numeric.rb
Overview
Copyright © 2012 by Tim Felgentreff
Instance Method Summary collapse
Methods included from Cassowary::Equalities
Instance Method Details
#as_linear_expression ⇒ Object
6 7 8 9 10 |
# File 'lib/ext/numeric.rb', line 6 def as_linear_expression expr = Cassowary::LinearExpression.new expr.constant = self.to_f expr end |