# Kind\_of? problem

**URL:** <https://www.ruby-forum.com/t/kind-of-problem/148774>\
**Category:** IronRuby\
**Created:** [September 17, 2008, 1:02am UTC](https://www.ruby-forum.com/t/kind-of-problem/148774 "2008-09-17T01:02:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan8107](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@stefan8107](https://www.ruby-forum.com/u/stefan8107)\
**Post date:** [September 17, 2008, 1:02am UTC](https://www.ruby-forum.com/t/kind-of-problem/148774/1 "2008-09-17T01:02:28Z")

</div>

Hi guys,

I was on the way of running RSpec in IronRuby. After some hacks I was  
able  
to run basic specs. However I came up to a problem that “before :each”  
was  
not called in IronRuby. After some digging I was able to find the  
problem.  
Here is a small repro:

module M  
end

class MyClass  
extend M  
end

MyClass.kind\_of?(M) # returns true in IRB, but false in IronRuby

Regards,  
Stefan

---

<div class="post-metadata">

**Author:** ![stefan8107](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@stefan8107](https://www.ruby-forum.com/u/stefan8107)\
**Post date:** [September 17, 2008, 1:10am UTC](https://www.ruby-forum.com/t/kind-of-problem/148774/2 "2008-09-17T01:10:05Z")

</div>

Nice catch, can you post this as a bug on the rubyforge?

Thanks,

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Stefan D.  
Sent: Tuesday, September 16, 2008 3:42 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] kind\_of? problem

Hi guys,

I was on the way of running RSpec in IronRuby. After some hacks I was  
able to run basic specs. However I came up to a problem that “before  
:each” was not called in IronRuby. After some digging I was able to find  
the problem. Here is a small repro:

module M  
end

class MyClass  
extend M  
end

MyClass.kind\_of?(M) # returns true in IRB, but false in IronRuby

Regards,  
Stefan

---

<div class="post-metadata">

**Author:** ![stefan8107](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@stefan8107](https://www.ruby-forum.com/u/stefan8107)\
**Post date:** [September 17, 2008, 8:13am UTC](https://www.ruby-forum.com/t/kind-of-problem/148774/3 "2008-09-17T08:13:33Z")

</div>

Done.

[https://rubyforge.org/tracker/?func=detail&aid=21995&group\_id=4359&atid=16798](https://rubyforge.org/tracker/?func=detail&aid=21995&group_id=4359&atid=16798)

SD

2008/9/17 Jim D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
