class OFlow::Task::Request
Internal class used to store information about asynchronous method invocations.
Attributes
box[RW]
op[RW]
Public Class Methods
new(op, box)
click to toggle source
# File lib/oflow/task.rb, line 513 def initialize(op, box) @op = op @box = box end
Public Instance Methods
describe(detail=3)
click to toggle source
# File lib/oflow/task.rb, line 518 def describe(detail=3) if @box.nil? "#{@op}()" elsif 2 >= detail @op elsif 3 >= detail || @box.tracker.nil? "#{@op}(#{@box.contents})" else "#{@op}(#{@box.contents}) #{@box.tracker}" end end