From 6fc84364b5b278058530b30f0f551c8f8d8dc497 Mon Sep 17 00:00:00 2001 From: James Lee Date: Fri, 11 Jun 2010 05:20:40 +0000 Subject: [PATCH] make PlatformList a little more like an Array git-svn-id: file:///home/svn/framework3/trunk@9479 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/module/platform_list.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/msf/core/module/platform_list.rb b/lib/msf/core/module/platform_list.rb index e8e4ad914a..a899854855 100644 --- a/lib/msf/core/module/platform_list.rb +++ b/lib/msf/core/module/platform_list.rb @@ -39,6 +39,10 @@ class Msf::Module::PlatformList self.new(*ary) end + def index(needle) + self.platforms.index(needle) + end + # # Constructor, takes the entries are arguments #