Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/distance/core_ext/integer.rb

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



14
15
16
# File 'lib/distance/core_ext/integer.rb', line 14

def *(other)
  other.is_a?(Distance) ? other * self : orig_multiply(other)
end

#orig_multiplyObject



12
# File 'lib/distance/core_ext/integer.rb', line 12

alias_method :orig_multiply, :*