Class: Nokogiri::XML::Builder
- Inherits:
 - 
      Object
      
        
- Object
 - Nokogiri::XML::Builder
 
 - Defined in:
 - backend/app/exporters/lib/exporter.rb
 
Overview
Help Nokogiri to remember namespaces
Instance Method Summary (collapse)
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
- (Object) method_missing(m, *args, &block)
      171 172 173 174 175 176 177 178 179 180 181 182 183 184 185  | 
    
      # File 'backend/app/exporters/lib/exporter.rb', line 171 def method_missing(m, *args, &block) @sticky_ns ||= nil @ns = @sticky_ns if @sticky_ns begin old_method_missing(m, *args, &block) rescue => e # this is a bit odd, but i would be better if the end-user gets the # error information in their export, rather than in their output. node = @doc.create_element( "aspace_export_error" ) node.content = "ASPACE EXPORT ERROR : YOU HAVE A PROBLEM WITH YOUR EXPORT OF YOUR RESOURCE. THE FOLLOWING INFORMATION MAY HELP: \n #{e.message} \n #{e.backtrace.inspect}" @parent.add_child(node) end end  | 
  
Instance Method Details
- (Object) old_method_missing
      169  | 
    
      # File 'backend/app/exporters/lib/exporter.rb', line 169 alias :old_method_missing :method_missing  |