Method: Burp::Group#update_id

Defined in:
app/lib/burp/group.rb

#update_id(parent_id) ⇒ Object



82
83
84
85
86
87
# File 'app/lib/burp/group.rb', line 82

def update_id(parent_id)
  @id = {:parent_id => parent_id, :hash => self.hash}.hash
  children.each_with_index do |child,index|
    child.update_id("#{self.id}#{index}")
  end
end