Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/distance/core_ext/integer.rb
Instance Method Summary collapse
Instance Method Details
#*(other) ⇒ Object
32 33 34 |
# File 'lib/distance/core_ext/integer.rb', line 32 def *(other) other.is_a?(Distance) ? other * self : orig_multiply(other) end |
#orig_multiply ⇒ Object
30 |
# File 'lib/distance/core_ext/integer.rb', line 30 alias_method :orig_multiply, :* |