Ruby Control Structures - Until

  • + 1 comment

    My compiled HackerRank solutions (Ruby): https://github.com/JNYH/hackerrank

    # Option 1
    while not coder.oh_one?
        coder.practice
    end
    
    # Option 2
    until coder.oh_one?
        coder.practice
    end
    
    # Option 3
    coder.practice until coder.oh_one?