Well, that is a modification. No public\private\irb  etc... :)))

=============Program ====================
#Version 2. For native Ruby
puts "Source is: #$0"
puts "File is: #{__FILE__}"

class Array
    def array_101A
	for i in [0 ... self.length]
		puts "#{i} => #{self[i]}"
	end
    end
end

a = ['a','s','d']
a.array_101A

=========== Results ======================
C:\Documents and Settings\Admin>ruby -w c:/PJ/play/test/lib/t3.rb
Source is: c:/PJ/play/test/lib/t3.rb
File is: c:/PJ/play/test/lib/t3.rb
0...3 => asd

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