Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/numeric.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object
3 4 5 6 7 |
# File 'lib/numeric.rb', line 3 def method_missing method_name, *args, &block engine = Metamorphosis::Engine.instance value = engine.numeric_to_unit_value(self, method_name) value || super( method_name, *args, &block ) end |