make PlatformList a little more like an Array

git-svn-id: file:///home/svn/framework3/trunk@9479 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-06-11 05:20:40 +00:00
parent 6f37ea2aeb
commit 6fc84364b5
1 changed files with 4 additions and 0 deletions

View File

@ -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
#