[MacRuby-devel] [MacRuby] #134: require 'rexml/document' fails

MacRuby ruby-noreply at macosforge.org
Mon Mar 30 20:01:28 PDT 2009


#134: require 'rexml/document' fails
------------------------------------+---------------------------------------
 Reporter:  rebotfc@…               |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  major                   |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------

Comment(by mattaimonetti@…):

 Because the constants are not inherited properly, we need to reopen the
 Attribute class and include the module defining the constants we are
 after.

 You can use the following hack to get rexml working until this problem
 gets resolved:

 {{{
 require 'rexml/xmltokens'
 module REXML
   class Attribute
     include ::REXML::XMLTokens
   end
 end
 }}}

 You can put the hotpatch in a ruby file and require it before loading
 rexml/client or rexml/document.

 - Matt

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/134#comment:5>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list