From: 13 Date: 2006-03-29T17:16:36+09:00 Subject: Re: Functions scope Hi, You can always provide full path to your desired method, like this: class C def open(uri) Kernel::open(uri) # open-uri has overriden Kernel::open method end end -- Martins On 3/29/06, Mirek wrote: > > i think you can do > > ::open > > require 'open-uri' > > class C > def open(uri) > ::open(uri) > end > end > > o = C.new > o.open('x') > > --- > > open.rb:6: syntax error, unexpected tIDENTIFIER, expecting tCONSTANT > ::open(uri) > ^ > > -- > Posted via http://www.ruby-forum.com/. > >