Method: Roby::Transaction#may_unwrap

Defined in:
lib/roby/transactions.rb

#may_unwrap(object) ⇒ Object

may_unwrap may return objects from transaction



166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/roby/transactions.rb', line 166

def may_unwrap(object)
    if object.respond_to?(:plan) 
  if object.plan == self && object.respond_to?(:__getobj__)
      object.__getobj__
  elsif object.plan == self.plan
      object
  else
      object
  end
    else object
    end
end