Advertisement
Guest User

Untitled

a guest
Nov 7th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class Question
  2. def initialize( text, &block )
  3. block.each do | line |
  4. lines ||= {}
  5. answer||= 0
  6. answer += 1
  7. if line.include?('true')
  8. self.answer=answer
  9. lines << line
  10. else
  11. continue
  12. lines << line
  13. end
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement