lib/filestack/utils/utils.rb
# Return current working offest if state
# has not tried it. Otherwise, return the next
# offset of the state
#
# @param [Integer]    working_offset    The current offset
# @param [IntelligentState]    state    An IntelligentState object
#
# @return [Integer]
Return current working offest if state
has not tried it. Otherwise, return the next
offset of the state
Return current working offest if state has not tried it . Otherwise return the next offset of the state
def change_offset(working_offset, state)
    if state.offset > working_offset
      working_offset
    else
      state.offset = state.next_offset
    end
  end
def change_offset ( working_offset , state ) if state . offset > working_offset working_offset else state . offset = state . next_offset end end
Return current working offest if state
has not tried it.
Return current working offest if state has not tried it .
None
Integer
working_offset
<not_specific>
state
<not_specific>
<not_specific>
state An IntelligentState object
state An IntelligentState object