[Nitro] overriding Element.prefix

Richard Hundt richard at protea-systems.com
Tue Aug 1 19:43:55 EDT 2006


Hi George,

Thanks, it's not too critical, I'll see if I can track it down... just 
thought somebody might see something obvious which I'd missed.

Cheers,
Richard



George Moschovitis wrote:
> Hello Richard,
>
> to tell you the truth I haven't tested the prefix override recently.
> If you add this as a ticket
> on nitroproject.org I will have a look over it on first occasion.
>
> thanks,
> George.
>
> On 8/1/06, Richard Hundt <richard at protea-systems.com> wrote:
>   
>> Hi List,
>>
>> I'm trying to override the Element.prefix property (defaults to 'x').
>> I've tried:
>>
>> require 'nitro'
>> require 'nitro/element'
>>
>> include Nitro
>>
>> Element.prefix = 'px'
>>
>> require 'element/my_element.rb'
>>
>> ...in my run.rb, to no avail. There's something about the sequence in
>> which the Elements::Listener::PREFIX_RE constant is defined which seems
>> to preclude changing the prefix at some point after the nitro libraries
>> are included. Does this sound right? Is there any way in which I could
>> add my own xml namespace?
>>
>> Any ideas, suggestions or ridicule would be appreciated.
>>
>> Thanks,
>> Richard
>> _______________________________________________
>> Nitro-general mailing list
>> Nitro-general at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/nitro-general
>>
>>     
>
>
>   



More information about the Nitro-general mailing list