lib/jss/api_object/criteriable/criteria.rb
def insert_criterion(priority, criterion)
        criterion_ok? criterion
        @criteria.insert criterion[:priority], criterion
        set_priorities
        @container.should_update if @container
      end
###
### Add a new criterion to the middle of the criteria
###
### @param priority[Integer] the priority/index before which to insert the new one.
###
### @param criterion[JSS::Criteriable::Criterion] the new Criterion to store at that index
###
### @return [void]
###
Add a new criterion to the middle of the criteria
Add a new criterion to the middle of the criteria
def insert_criterion(priority, criterion)
        criterion_ok? criterion
        @criteria.insert criterion[:priority], criterion
        set_priorities
        @container.should_update if @container
      end
def insert_criterion ( priority , criterion ) criterion_ok? criterion @criteria . insert criterion [ :priority ] , criterion set_priorities @container . should_update if @container end
Add a new criterion to the middle of the criteria
Add a new criterion to the middle of the criteria
None
void
priority
the priority/index before which to insert the new one.
the priority / index before which to insert the new one .
criterion
the new Criterion to store at that index
the new Criterion to store at that index