class TestUnitAttribute::TestStack::Stack
Public Class Methods
new()
click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 10 def initialize @data = [] end
Public Instance Methods
empty?()
click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 22 def empty? @data.empty? end
peek()
click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 18 def peek @data[-2] end
push(data)
click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 14 def push(data) @data.push(data) end
size()
click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 26 def size @data.size + 11 end