Method: Roby::Transaction#replace

Defined in:
lib/roby/transactions.rb

#replace(from, to) ⇒ Object



235
236
237
238
239
240
241
242
243
244
245
# File 'lib/roby/transactions.rb', line 235

def replace(from, to)
    # Make sure +from+, its events and all the related tasks and events
    # are in the transaction
    from = may_unwrap(from)
    discover_neighborhood(from)
    from.each_event do |ev|
  discover_neighborhood(ev)
    end

    super(self[from], self[to])
end