--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Evalutas to the URI for a prefix, or the empty string if no such namespace is declared for this element. Evaluates recursively for ancestors. Returns the default namespace, if there is one.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "prefix:"
    body: the prefix to search for. If not supplied, returns the default namespace if one exists
  - !ruby/struct:SM::Flow::LI 
    label: "Returns:"
    body: the namespace URI as a String, or nil if no such namespace exists. If the namespace is undefined, returns an empty string
  type: :NOTE
- !ruby/struct:SM::Flow::VERB 
  body: " doc = Document.new(&quot;&lt;a xmlns='1' xmlns:y='2'&gt;&lt;b/&gt;&lt;c xmlns:z='3'/&gt;&lt;/a&gt;&quot;)\n b = doc.elements['//b']\n b.namespace           # -&gt; '1'\n b.namespace(&quot;y&quot;)      # -&gt; '2'\n"
full_name: REXML::Element#namespace
is_singleton: false
name: namespace
params: (prefix=nil)
visibility: public
