class Roby::Test::ExecutionExpectations::Achieve

Public Class Methods

new(block, description, backtrace) click to toggle source
# File lib/roby/test/execution_expectations.rb, line 1079
def initialize(block, description, backtrace)
    super(backtrace)
    @description = description
    @block = block
end

Public Instance Methods

return_object() click to toggle source
# File lib/roby/test/execution_expectations.rb, line 1089
def return_object
    @achieved
end
to_s() click to toggle source
# File lib/roby/test/execution_expectations.rb, line 1093
def to_s
    if @description
        @description
    else
        @backtrace[0].to_s
    end
end
update_match(propagation_info) click to toggle source
# File lib/roby/test/execution_expectations.rb, line 1085
def update_match(propagation_info)
    @achieved ||= @block.call(propagation_info)
end