class ThreadStack

Attributes

call[R]

Public Class Methods

new(stack) click to toggle source
# File lib/threadStack.rb, line 41
def initialize(stack)
        previousCall = nil
        stack.each { |text|
                call = Call.new(text.chomp)
                if not previousCall.nil?
                        call.children << previousCall
                end
                previousCall = call
        }
        @call = previousCall
end

Public Instance Methods

children_sorted() click to toggle source
# File lib/threadStack.rb, line 57
def children_sorted
        call.children_sorted
end
count() click to toggle source
# File lib/threadStack.rb, line 61
def count
        call.count
end
merge(threadStack) click to toggle source
# File lib/threadStack.rb, line 53
def merge(threadStack)
        @call.merge(threadStack.call)
end
text_count() click to toggle source
# File lib/threadStack.rb, line 65
def text_count
        call.text_count
end