Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/distance/core_ext/float.rb
Instance Method Summary collapse
Instance Method Details
#*(other) ⇒ Object
4 5 6 |
# File 'lib/distance/core_ext/float.rb', line 4 def *(other) other.is_a?(Distance) ? other * self : orig_multiply(other) end |
#orig_multiply ⇒ Object
2 |
# File 'lib/distance/core_ext/float.rb', line 2 alias_method :orig_multiply, :* |