# How to include a external class file for creating a new obje

**URL:** <https://www.ruby-forum.com/t/how-to-include-a-external-class-file-for-creating-a-new-obje/118884>\
**Category:** Ruby\
**Created:** [October 31, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/how-to-include-a-external-class-file-for-creating-a-new-obje/118884 "2007-10-31T23:59:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newrubyuser](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/898d66/32.png) [@newrubyuser](https://www.ruby-forum.com/u/newrubyuser)\
**Post date:** [October 31, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/how-to-include-a-external-class-file-for-creating-a-new-obje/118884/1 "2007-10-31T23:59:20Z")

</div>

hello all

Im new to ruby and im just trying to see how i can instanciate an  
object that is defined in a class file like myclass.rb then in another  
class file like start.rb i just call it like so, newObj = myclass.new do  
i need  
the include statement at the top? like include myclass.rb or mayby the  
require statement? Thanks
