app/models/studentdb/course.rb
def meets_at?(start_time, end_time = nil)
    raise Exception.new("Invalid date object") unless start_time.is_a?(Time) || start_time.is_a?(DateTime)
    return false unless quarter.sdb.include?(start_time) # are we even in the right quarter?
    return false unless instance_eval("#{start_time.strftime("%A").downcase}?")
    meets_at_time?(start_time, end_time)
  end
# Returns true if this class is scheduled to meet at the DateTime specified. Pass a second parameter as an ending_time to
# evaluate a range of time (optional).
Returns true if this class is scheduled to meet at the DateTime specified. Pass a second parameter as an ending_time to
evaluate a range of time (optional).
Returns true if this class is scheduled to meet at the DateTime specified . Pass a second parameter as an ending_time to evaluate a range of time ( optional ) .
def meets_at?(start_time, end_time = nil)
    raise Exception.new("Invalid date object") unless start_time.is_a?(Time) || start_time.is_a?(DateTime)
    return false unless quarter.sdb.include?(start_time) 
    return false unless instance_eval("#{start_time.strftime("%A").downcase}?")
    meets_at_time?(start_time, end_time)
  end
def meets_at? ( start_time , end_time = nil ) raise Exception . new ( "Invalid date object" ) unless start_time . is_a? ( Time ) || start_time . is_a? ( DateTime ) return false unless quarter . sdb . include? ( start_time ) return false unless instance_eval ( "#{start_time.strftime("%A").downcase}?" ) meets_at_time? ( start_time , end_time ) end
Returns true if this class is scheduled to meet at the DateTime specified.
Returns true if this class is scheduled to meet at the DateTime specified .
# are we even in the right quarter?
start_time
end_time