If you mean take all of the windows and find the index of one, yes:

irb(main):007:0> b1.windows.count
=> 2
irb(main):008:0> b2.windows.count
=> 2
irb(main):009:0> b1.windows.index b1
=> 0
irb(main):010:0> b1.windows.index b2
=> 1

-- 
Posted via http://www.ruby-forum.com/.