# Accesing core File class

**URL:** <https://www.ruby-forum.com/t/accesing-core-file-class/150659>\
**Category:** Ruby\
**Created:** [October 10, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/accesing-core-file-class/150659 "2008-10-10T22:59:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpc2148](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Post date:** [October 10, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/accesing-core-file-class/150659/1 "2008-10-10T22:59:37Z")

</div>

Hey , I have to deal with some classes written by someone else , and ,  
in the classes they wrote , they defined a File class . How could I  
access the class from Core ?

---

<div class="post-metadata">

**Author:** ![lpc2148](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lpc2148](https://www.ruby-forum.com/u/lpc2148)\
**Post date:** [October 10, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/accesing-core-file-class/150659/2 "2008-10-10T23:07:49Z")

</div>

Lex W. wrote:

> Hey , I have to deal with some classes written by someone else , and ,  
> in the classes they wrote , they defined a File class . How could I  
> access the class from Core ?

using ::File worked.
