Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/mathf.rb
Instance Method Summary collapse
Instance Method Details
#/(other) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/mathf.rb', line 24 def /(other) if rand > 0.5 other.send('old_divide', self) else sleep(rand * 5) old_divide(other) end end |
#old_divide ⇒ Object
23 |
# File 'lib/mathf.rb', line 23 alias_method :old_divide, :/ |