Hi all,

I want to find out if an object responses to a method. while I can tell
that the excel object(in this script) responses to method 'Visible or
visible', my codes DO NOT come true. Any idea?


Thank very much,

Li


C:\Users\Alex>irb
irb(main):001:0> require 'win32ole'
=> true
irb(main):002:0>
irb(main):003:0* excel=WIN32OLE.new("excel.application")
=> #<WIN32OLE:0x389d638>
irb(main):004:0> excel.Visible=true
=> true
irb(main):005:0> puts excel.respond_to?("visible")
false
=> nil
irb(main):006:0> puts excel.respond_to?("Visible")
false
=> nil
irb(main):007:0>
irb(main):008:0* puts excel.respond_to?('visible')
false
=> nil
irb(main):009:0> puts excel.respond_to?('Visible')
false
=> nil
irb(main):010:0>
irb(main):011:0* puts excel.respond_to?(:visible)
false
=> nil
irb(main):012:0> puts excel.respond_to?(:Visible)
false
=> nil
irb(main):013:0>
-- 
Posted via http://www.ruby-forum.com/.