From e3c528bb81a09d715cada5f2d7dac04853ac0ccc Mon Sep 17 00:00:00 2001 From: Gabriel Halley Date: Wed, 7 Oct 2015 15:25:50 -0400 Subject: [PATCH] add modulus operator --- ruby.html.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/ruby.html.markdown b/ruby.html.markdown index 8f23b2e6..ec7b2f5e 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -39,6 +39,7 @@ You shouldn't either 10 * 2 #=> 20 35 / 5 #=> 7 2**5 #=> 32 +5 % 3 #=> 2 # Arithmetic is just syntactic sugar # for calling a method on an object