class Busted::Stack

Public Class Methods

new() click to toggle source
# File lib/busted/stack.rb, line 5
def initialize
  @started = []
  @finished = []
  @lock = Monitor.new
end

Public Instance Methods

finished() click to toggle source
# File lib/busted/stack.rb, line 19
def finished
  @lock.synchronize { @finished.pop }
end
finished=(element) click to toggle source
# File lib/busted/stack.rb, line 23
def finished=(element)
  @lock.synchronize { @finished.push element }
end
started() click to toggle source
# File lib/busted/stack.rb, line 11
def started
  @lock.synchronize { @started.pop }
end
started=(element) click to toggle source
# File lib/busted/stack.rb, line 15
def started=(element)
  @lock.synchronize { @started.push element }
end