Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/rubytracer/colour.rb
Instance Method Summary collapse
Instance Method Details
#*(other) ⇒ Object
80 81 82 83 84 85 86 87 |
# File 'lib/rubytracer/colour.rb', line 80 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
78 |
# File 'lib/rubytracer/colour.rb', line 78 alias :times_without_rubytracer :'*' |