# Re: Question about BlankSlate.reveal

**URL:** <https://www.ruby-forum.com/t/re-question-about-blankslate-reveal/158594>\
**Category:** Ruby\
**Created:** [January 25, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/re-question-about-blankslate-reveal/158594 "2009-01-25T17:28:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naething](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@naething](https://www.ruby-forum.com/u/naething)\
**Post date:** [January 25, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/re-question-about-blankslate-reveal/158594/1 "2009-01-25T17:28:36Z")

</div>

On Sun, Jan 25, 2009 at 5:30 AM, Gregory B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

As it turns out, I was able to stop the method from binding to a  
single instance without re-binding on every call. I simply changed  
this code:

> ```
> bound_method.call(*args)
> end
> 
> ```
> 
> end  
> end

So that instead, it passed the UnboundMethod directly to  
define\_method. This does what I want and seems reasonable. Please  
let me know if there are problems, otherwise, I’m a happy camper now.  
🙂

```
def reveal(name)
  unbound_method = find_hidden_method(name)
  fail "Don't know how to reveal method '#{name}'" unless 

```

unbound\_method  
define\_method(name, unbound\_method)  
end

-greg

---

<div class="post-metadata">

**Author:** ![naething](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e47774/32.png) [@naething](https://www.ruby-forum.com/u/naething)\
**Post date:** [January 28, 2009, 11:25am UTC](https://www.ruby-forum.com/t/re-question-about-blankslate-reveal/158594/2 "2009-01-28T11:25:39Z")

</div>

2009/1/25 Gregory B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> On Sun, Jan 25, 2009 at 5:30 AM, Gregory B.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> As it turns out, I was able to stop the method from binding to a  
> single instance without re-binding on every call. I simply changed  
> this code:

> So that instead, it passed the UnboundMethod directly to  
> define\_method. This does what I want and seems reasonable. Please  
> let me know if there are problems, otherwise, I’m a happy camper now.

Greg, thanks for sharing the result of your investigation!

Kind regards

robert
