[]

WIN32OLE[a1,a2,...]
Instance Public methods

Returns the value of Collection specified by a1, a2,.â¦

dict = WIN32OLE.new('Scripting.Dictionary')
dict.add('ruby', 'Ruby')
puts dict['ruby'] # => 'Ruby' (same as `puts dict.item('ruby')')

Remark: You can not use this method to get the property.

excel = WIN32OLE.new('Excel.Application')
# puts excel['Visible']  This is error !!!
puts excel.Visible # You should to use this style to get the property.
doc_ruby_on_rails
2015-06-12 20:30:43
Comments
Leave a Comment

Please login to continue.