# Include FileTest not working how I expect

**URL:** <https://www.ruby-forum.com/t/include-filetest-not-working-how-i-expect/189784>\
**Category:** IronRuby\
**Created:** [June 7, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/include-filetest-not-working-how-i-expect/189784 "2010-06-07T18:29:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Flanagan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@Josh\_Flanagan](https://www.ruby-forum.com/u/Josh_Flanagan)\
**Post date:** [June 7, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/include-filetest-not-working-how-i-expect/189784/1 "2010-06-07T18:29:52Z")

</div>

Can someone explain the different ‘include’ behavior outlined in this  
code snippet:

> <https://gist.github.com/joshuaflanagan/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?

---

<div class="post-metadata">

**Author:** ![Josh\_Flanagan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@Josh\_Flanagan](https://www.ruby-forum.com/u/Josh_Flanagan)\
**Post date:** [June 7, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/include-filetest-not-working-how-i-expect/189784/2 "2010-06-07T19:15:33Z")

</div>

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
