Class: MatrixDSL::MathFunctions
- Inherits:
-
Object
- Object
- MatrixDSL::MathFunctions
- Defined in:
- lib/matrix_dsl.rb
Class Method Summary collapse
Class Method Details
.method_missing(func, parameter, *args, &block) ⇒ Object
95 96 97 98 99 100 101 |
# File 'lib/matrix_dsl.rb', line 95 def self.method_missing(func, parameter, *args, &block) if parameter.class == Matrix parameter.send func elsif parameter.class == Fixnum || parameter.class == Float Math.send func, parameter end end |