The difference is that in Ruby the FileTest methods are both singleton methods 
and private instance methods while in IronRuby they are just singleton methods.
So this is a bug in FileTest. I'll submit a fix.

Tomas

-----Original Message-----
From: ironruby-core-boun...@rubyforge.org 
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Josh Flanagan
Sent: Monday, June 07, 2010 9:24 AM
To: Ironruby-core@rubyforge.org
Subject: [Ironruby-core] include FileTest not working how I expect

Can someone explain the different 'include' behavior outlined in this code 
snippet:
http://gist.github.com/396623

Is this a known difference between MRI/IronRuby in how include works?
Or is it a matter of different namespace clashes happening in IronRuby?

Can I make the code that works under MRI (calling unqualified exists?) work in 
IronRuby?
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to