Skip to content

Instantly share code, notes, and snippets.

@jparrish62
Created May 22, 2016 22:51
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 jparrish62/dfd6008c49b06a431a03582aeaac0f78 to your computer and use it in GitHub Desktop.
Save jparrish62/dfd6008c49b06a431a03582aeaac0f78 to your computer and use it in GitHub Desktop.
class User
def initialize(vote)
@vote = vote
@c = []
@d = []
end
def count
@c << @vote
votes = @c.length
if votes < 5
puts "not enough"
puts "#{votes}"
puts "#{@c}"
else
puts "Thats it"
puts "#{votes}"
puts "#{@c}"
end
end
end
tim = User.new("8")
tim.count
jon = User.new("5")
jon.count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment