Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/quaternion/numeric.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#*(other) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/quaternion/numeric.rb', line 17

def * other
  if other.is_a?(Quaternion)
    other*self
  else
    self.multi_org(other)
  end
end

#multi_orgObject



15
# File 'lib/quaternion/numeric.rb', line 15

alias_method :multi_org, :*