Hi Satoshi, really thanks for your reply
On Wed, Nov 19, 2008 at 5:07 PM, Satoshi Asakawa <[EMAIL PROTECTED]> wrote:
> I'm not sure that I understand your problem correctly, though...
that's only my fault: 3am and I did not explain myself well.
I wanted to say I was not able to read w.left attribute, but your example
works well for me and my shoes...
I also tried
debug(w3.left) and it shows correctly... I swear this night it did not work
:/
thanks a lot for helping testing it out.
Emanuel
I think that we can use :left and :top without definition in class Widgy.
> Because inherited from Shoes::Widget.
>
> Hope it helps,
> ashbb
>
>
>
> On Wed, Nov 19, 2008 at 10:59 AM, Emanuel Carnevale <
> [EMAIL PROTECTED]> wrote:
>
>> Hi, I know Widgets are not the most cared things in shoes, but I stumbled
>> in this thing:
>>
>> class Shoes::Widgy < Shoes::Widget
>> attr_accessor :size
>>
>> def initialize opts = {}
>> @size = opts[:size] || 100
>> fill "#000"
>> rect 0, 0, @size, @size
>> end
>> end
>>
>> I have to call it with
>>
>> w = widgy :top => 20, :left => 30
>>
>> if I do w.move(30,30) it moves, so I start expecting it behaves like every
>> other elements.
>> but why I cannot do
>>
>> w.left or w.right ?
>> obviously w.size works
>>
>> it's a bug or I'm missing something?
>>
>
>