Skip to content

Instantly share code, notes, and snippets.

/even.rb Secret

Created July 3, 2015 23:35
Show Gist options
  • Save anonymous/2eabc4b47d514decc10a to your computer and use it in GitHub Desktop.
Save anonymous/2eabc4b47d514decc10a to your computer and use it in GitHub Desktop.
even.rb
def isEven?(n)
return n % 2 == 0
end
num = 5
isEven?(num) # => How it currently works
# num.isEven? => How I want it to work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment