class Build::Environment
def flatten_to_hash(hash)
def flatten_to_hash(hash) if parent = @parent parent = parent.flatten_to_hash(hash) end if @update self.dup(parent: parent).update!.update_hash(hash) else self.update_hash(hash) end end
def flatten_to_hash(hash) if parent = @parent parent = parent.flatten_to_hash(hash) end if @update self.dup(parent: parent).update!.update_hash(hash) else self.update_hash(hash) end end