Libraries
»
basic101
(1.0.0)
»
Index
»
Basic101
»
BasicNumeric
»
#negate
Method: Basic101::BasicNumeric#negate
Defined in:
lib/basic101/basic_numeric.rb
#
negate
⇒
Object
50 51 52
# File 'lib/basic101/basic_numeric.rb', line 50
def
negate
self
.
class
.
new
(
-
value
)
end