Advertisement
Claof

Functions + statements - Ruby

Dec 23rd, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.13 KB | None | 0 0
  1. @variable=false
  2.  
  3. def the_function()
  4. if @variable==false then
  5. @variable=true
  6. elsif @variable==true
  7. @variable=true
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement