Sha256: 2a39c0bc925830febca9fe5a5d63ea57d652f28f796a1ec1e3c20e0a26fb6432
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
module Danica module BaseOperations def +(other) return other + self if other.is_a?(Operator::Addition) addition(self, other) end def *(other) return other * self if other.is_a?(Operator::Multiplication) multiplication(self, other) end def /(other) division(self, other) end def -(other) self + negative(other) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danica-2.3.0 | lib/danica/base_operations.rb |