[Nitro] overriding Element.prefix

George Moschovitis george.moschovitis at gmail.com
Tue Aug 1 14:51:45 EDT 2006

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.


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