# Canvas#top= in Shoes

**URL:** <https://www.ruby-forum.com/t/canvas-top-in-shoes/165247>\
**Category:** Ruby\
**Created:** [April 10, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/canvas-top-in-shoes/165247 "2009-04-10T18:12:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joelagnel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@joelagnel](https://www.ruby-forum.com/u/joelagnel)\
**Post date:** [April 10, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/canvas-top-in-shoes/165247/1 "2009-04-10T18:12:58Z")

</div>

In the hunt for a bug in Shoes, which I need to fix for my app, I have  
been trying to determine where the “top=” instance method for the Canvas  
class is defined in C (most of shoes is written in C)

So far, I’ve looked for the following in source:

1. rb\_define\_method - a bunch of methods for cCanvas have been defined,  
but top= doesn’t seem to be there in the list.
2. rb\_define\_attr
3. grep of the entire source for “top=”
4. grep of source for attr\_accessor
5. seeing where method\_missing was being used on calling Canvas#top=.  
Canvas.instance\_methods has “top=” in its list so method\_missing is not  
being used.

Anything else I should’ve checked for?

Any suggestions would be appreciated.

Thanks!  
Joel
