Skip to content

Instantly share code, notes, and snippets.

@elskwid
Created April 3, 2015 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elskwid/7ba37fba0357dcf9d5a6 to your computer and use it in GitHub Desktop.
Save elskwid/7ba37fba0357dcf9d5a6 to your computer and use it in GitHub Desktop.
TECH603 - Example function (Day 4 Quiz)
def function(a)
a = a.to_i
if a == 1
a + 5 / 2
elsif a == 2
a + 5 + 3
elsif a > 2 && a <= 1000
a
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment