method
    
    namespaces
 
  namespaces()
  public
  
    Hide source    
    
      
  
# File lib/rexml/element.rb, line 1171 def namespaces namespaces = {} each_attribute do |attribute| namespaces[attribute.name] = attribute.value if attribute.prefix == 'xmlns' or attribute.name == 'xmlns' end if @element.document and @element.document.doctype expn = @element.expanded_name expn = @element.document.doctype.name if expn.size == 0 @element.document.doctype.attributes_of(expn).each { |attribute| namespaces[attribute.name] = attribute.value if attribute.prefix == 'xmlns' or attribute.name == 'xmlns' } end namespaces end

 RSpec
RSpec Ruby on Rails
Ruby on Rails Ruby
Ruby 
   
   = private
 = private = protected
 = protected
  