lib/core/view_container.rb
# A recursive function to move backward in the View hierarchy.
A recursive function to move backward in the View hierarchy.
A recursive function to move backward in the View hierarchy .
def backward(vassal_index)
    if vassal_index > 0 then
      return @vassals[vassal_index.pred].view_last
    else
      if @lord.nil? then
        return @vassals[-1].view_last
      else
        return @lord.backward(@index)
      end
    end
  end
def backward ( vassal_index ) if vassal_index > 0 then return @vassals [ vassal_index . pred ] . view_last else if @lord . nil? then return @vassals [ - 1 ] . view_last else return @lord . backward ( @index ) end end end
A recursive function to move backward in the View hierarchy.
A recursive function to move backward in the View hierarchy .
# If the index is not of the first vassal, return the last view of the # last vassal. # Return the last view of the last vassal.
vassal_index