# Re: Global dynamic method definition

**URL:** <https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75849>\
**Category:** Ruby\
**Created:** [November 13, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75849 "2006-11-13T22:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![philpraxis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/77aa72/32.png) [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Post date:** [November 13, 2006, 10:08pm UTC](https://www.ruby-forum.com/t/re-global-dynamic-method-definition/75849/1 "2006-11-13T22:08:38Z")

</div>

Gavin K. wrote:

> > 789
> 
> Depending on how much you’ve simplified it, you might see if  
> the following code helps. (I wonder if you really need to  
> dynamically define a new method; you certainly don’t to  
> achieve the desired output of your  
> sample.)

Hi,

Right, my first example was very very simplified, and your first class  
variable example did exactly what I needed. Again, thanks a lot for your  
help!
