Skip to content

Commit

Permalink
Fix: Globally scope namespaces within the local context
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamcat4 committed Feb 27, 2010
1 parent db965f7 commit d8805ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/libxml_bindings.rb
Expand Up @@ -206,7 +206,7 @@ module String
#
# The resulting libxml instance can be parsed, manipulated, and converted back to a string.
def to_xmldoc
return XML::Parser.string(self).parse
return ::XML::Parser.string(self).parse
end
end

Expand All @@ -216,14 +216,14 @@ def to_xmldoc
module LibXML
module XML #:nodoc:
class Document #:nodoc:
include LibxmlBindings::XML::Document
include ::LibxmlBindings::XML::Document
end

class Node #:nodoc:
include LibxmlBindings::XML::Node
include ::LibxmlBindings::XML::Node
end
end
end
class String #:nodoc:
include LibxmlBindings::String
include ::LibxmlBindings::String
end

0 comments on commit d8805ca

Please sign in to comment.