518 |
end |
end |
519 |
super |
super |
520 |
end |
end |
521 |
|
|
522 |
end |
end |
523 |
|
|
524 |
## |
## |
585 |
@queue.clear |
@queue.clear |
586 |
@slot.notify(:notify_queue_clear) |
@slot.notify(:notify_queue_clear) |
587 |
end |
end |
588 |
|
|
589 |
|
## |
590 |
|
# Return a given element in the queue. Leave it in place |
591 |
|
# notification :none |
592 |
|
# return: the value of the element at index |
593 |
|
def [] (index) |
594 |
|
@queue[index] |
595 |
|
end |
596 |
|
|
597 |
end |
end |
598 |
|
|
652 |
def clear |
def clear |
653 |
@stack.clear |
@stack.clear |
654 |
end |
end |
655 |
|
|
656 |
|
## |
657 |
|
# Return a given element in the stack. Leave it in place |
658 |
|
# notification :none |
659 |
|
# return: the value of the element at index |
660 |
|
def [] (index) |
661 |
|
@queue[index] |
662 |
|
end |
663 |
|
|
664 |
end |
end |
665 |
|
|
666 |
## |
## |