name -> String
[permalink][rdoc]to_s -> String
変数名を取得します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType') variables = tobj.variables variables.each do |variable| puts "#{variable.name}" # => xlChart, xlDialogSheet, ... end