~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to ext/win32ole/tests/oleserver.rb

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-05-21 14:00:19 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070521140019-ui4zd0v80duktssk
Tags: 1.9.0+20070521-1
new upstream snapshot. (2006-07-21)  (Closes: #414856, #388344)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
require 'win32ole'
2
 
def oletypelib_name(pat)
3
 
  WIN32OLE_TYPE.typelibs.each do |lib|
4
 
    return lib if pat =~ lib
5
 
  end
6
 
end
7
 
module OLESERVER
8
 
  MS_EXCEL_TYPELIB = oletypelib_name(/^Microsoft Excel .* Object Library$/)
9
 
  MS_XML_TYPELIB = oletypelib_name(/^Microsoft XML/)
10
 
end