Skip to content

Instantly share code, notes, and snippets.

@jparrish62
Created May 22, 2016
Embed
What would you like to do?
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