[Nitro] overriding Element.prefix
george.moschovitis at gmail.com
Tue Aug 1 14:51:45 EDT 2006
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.
> Nitro-general mailing list
> Nitro-general at rubyforge.org
More information about the Nitro-general