mdc/lib/domain/slide.rb
##
# Determine the maximum ordering number assigned to elements of this slide
# @return [Fixnum] the maximum number found in the elements
Determine the maximum ordering number assigned to elements of this slide
Determine the maximum ordering number assigned to elements of this slide
def max_order
      max = 0
      @elements.each do |e|
        max = !e.order.nil? && e.order > max ? e.order : max
      end
      max
    end
def max_order max = 0 @elements . each do | e | max = ! e . order . nil? && e . order > max ? e . order : max end max end
Determine the maximum ordering number assigned to elements of this slide
Determine the maximum ordering number assigned to elements of this slide
the maximum number found in the elements
the maximum number found in the elements
Fixnum