Method: AgentXmpp::Xmpp::Element#parent=
- Defined in:
- lib/agent_xmpp/xmpp/element.rb
#parent=(new_parent) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….……
113 114 115 116 117 118 119 120 121 |
# File 'lib/agent_xmpp/xmpp/element.rb', line 113 def parent=(new_parent) if parent and parent.namespace('') == namespace('') and attributes['xmlns'].nil? add_namespace parent.namespace('') end super if new_parent and new_parent.namespace('') == namespace('') delete_namespace end end |