Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/rubytracer/colour.rb
Instance Method Summary collapse
Instance Method Details
#*(other) ⇒ Object
54 55 56 57 58 59 60 61 |
# File 'lib/rubytracer/colour.rb', line 54 def * other case other when Rubytracer::Colour Rubytracer::Colour.new(self * other.r, self * other.g, self * other.b) else self.times_without_rubytracer(other) end end |
#times_without_rubytracer ⇒ Object
52 |
# File 'lib/rubytracer/colour.rb', line 52 alias :times_without_rubytracer :'*' |