G
gabriele renzi
Hi gurus and nubys,
I was just wondering why access to attributes of an element is done
just via #attributes#[].
IMO it would be nice to have Element#[] like:
def [](k)
attributes[k]
end
and ditto for #[]=
Anyway, Sean Russel is my personal XML deity so if this is not allowed
there may be a reason: what is this reason?
I was just wondering why access to attributes of an element is done
just via #attributes#[].
IMO it would be nice to have Element#[] like:
def [](k)
attributes[k]
end
and ditto for #[]=
Anyway, Sean Russel is my personal XML deity so if this is not allowed
there may be a reason: what is this reason?