DEV Community

pooyaalamdari
pooyaalamdari

Posted on

ruby shortcut operators

a += 1
(a = a + 1)
a-= 1
a/= 1
a*= 1
a**= 1
(a = a ** 1)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)