Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Question
- def initialize( text, &block )
- block.each do | line |
- lines ||= {}
- answer||= 0
- answer += 1
- if line.include?('true')
- self.answer=answer
- lines << line
- else
- continue
- lines << line
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement