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 <mirek.rusin / onet.pl> 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/.
>
>