# Reloading .rb files / reparsing?

**URL:** <https://www.ruby-forum.com/t/reloading-rb-files-reparsing/84361>\
**Category:** Ruby\
**Created:** [February 3, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/reloading-rb-files-reparsing/84361 "2007-02-03T17:31:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 3, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/reloading-rb-files-reparsing/84361/1 "2007-02-03T17:31:50Z")

</div>

hi -

I’m working on an app which is using webbrick for its mini web-server.

each time i change the source i have to restart my app;  
is there a way to get ruby to re-parse the files without this?  
effectively the same as if just reloading the page if it were PHP…

i guess rails does this - “not caching” the files while in dev mode.

tx!

## /dc

```
  David "DC" Collier

```

[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
+81 (0)80 6521 9559  
skype: callto://d3ntaku

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 3, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/reloading-rb-files-reparsing/84361/2 "2007-02-03T17:36:50Z")

</div>

On 2/3/07, dc [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## tx!

Hi David,  
You could try hacking the Camping Reloader to do your business:  
[http://code.whytheluckystiff.net/camping/browser/trunk/lib/camping/reloader.rb](http://code.whytheluckystiff.net/camping/browser/trunk/lib/camping/reloader.rb)  
[http://code.whytheluckystiff.net/camping/browser/trunk/bin/camping](http://code.whytheluckystiff.net/camping/browser/trunk/bin/camping)  
(this uses it)
