# File lib/plugins/draft.rb, line 9 def get_draft_index(arg) case arg when /^\d+$/ arg.to_i when '' -1 else nil end end