# In \`include': wrong argument type Class?

**URL:** <https://www.ruby-forum.com/t/in-include-wrong-argument-type-class/137182>\
**Category:** Ruby\
**Created:** [May 9, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/in-include-wrong-argument-type-class/137182 "2008-05-09T18:55:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Une\_BSSSSvS\_ue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/2acd7d/32.png) [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Post date:** [May 9, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/in-include-wrong-argument-type-class/137182/1 "2008-05-09T18:55:37Z")

</div>

i did something like :

module ManPage  
MANPATH=[]  
MANSEC=[]  
end

class Page  
include ManPage

attr\_accessor :manpath,:section,:page,:count,:key

def initialize(manpath,section,page)  
…  
end

using that from another script:

require ‘man\_rep/manpage’ #requires the file where are the module  
ManPage and the class Page

include ManPage

and the error come in this line (just above) ?

why ? what did i misunderstood ?

the purpose of the “module” is only to get the two arrays MANPATH and  
MANSEC common to both the class Page and any script using this class  
Page.

i should mention, the script itself is a cgi script working under  
mod\_ruby (Apache2).

---

<div class="post-metadata">

**Author:** ![Une\_BSSSSvS\_ue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/2acd7d/32.png) [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Post date:** [May 9, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/in-include-wrong-argument-type-class/137182/2 "2008-05-09T19:31:30Z")

</div>

Une Bévue [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> why ?

it was a caching problem, restarting the server did the trick…
