Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/fixnum.rb

Instance Method Summary collapse

Instance Method Details

#+@Object



2
3
4
# File 'lib/core_ext/fixnum.rb', line 2

def +@
  self + 1
end

#-@Object



5
6
7
# File 'lib/core_ext/fixnum.rb', line 5

def -@
  self - 1
end