diff options
author | Gabriel Halley <ghalley@pindropsecurity.com> | 2015-10-07 15:25:50 -0400 |
---|---|---|
committer | Gabriel Halley <ghalley@pindropsecurity.com> | 2015-10-07 15:25:50 -0400 |
commit | e3c528bb81a09d715cada5f2d7dac04853ac0ccc (patch) | |
tree | d92357ed8457bd535bb3bd7f26384cff07bfea8d /ruby.html.markdown | |
parent | 5c677e8071291520297ef3d5d8374c6d11285744 (diff) |
add modulus operator
Diffstat (limited to 'ruby.html.markdown')
-rw-r--r-- | ruby.html.markdown | 1 |
1 files changed, 1 insertions, 0 deletions
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 |