You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: core.rb
    path of file: ./repos/metasploit-framework/lib/msf/ui/console/command_dispatcher
    
    the code of the file until where you have to start completion: # -*- coding: binary -*-

#
# Rex
#


#
# Project
#


require 'msf/core/opt_condition'
require 'optparse'

module Msf
module Ui
module Console
module CommandDispatcher

###
#
# Command dispatcher for core framework commands, such as module loading,
# session interaction, and other general things.
#
###
class Core

  include Msf::Ui::Console::
    
  def evaluate_search_criteria(session, search_term)
    field, operator, value = search_term.split(':')

    case field
    when LAST_CHECKIN
      last_checkin_time = session.last_checkin
      offset = parse_duration(value)
      return nil unless offset

      threshold_time = Time.now - offset
      case operator
      when GREATER_THAN
        return threshold_time > last_checkin_time
      when LESS_THAN
        return threshold_time < last_checkin_time
      end