Class: WsdlMapper::DomParsing::LocalFileResolver
- Inherits:
-
AbstractResolver
- Object
- AbstractResolver
- WsdlMapper::DomParsing::LocalFileResolver
- Defined in:
- lib/wsdl_mapper/dom_parsing/local_file_resolver.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ LocalFileResolver
constructor
A new instance of LocalFileResolver.
- #resolve(name) ⇒ Object
Constructor Details
#initialize(path) ⇒ LocalFileResolver
Returns a new instance of LocalFileResolver.
8 9 10 |
# File 'lib/wsdl_mapper/dom_parsing/local_file_resolver.rb', line 8 def initialize(path) @path = path end |
Instance Method Details
#resolve(name) ⇒ Object
12 13 14 15 16 |
# File 'lib/wsdl_mapper/dom_parsing/local_file_resolver.rb', line 12 def resolve(name) path = File.join @path, name Nokogiri::XML::Document.parse File.read(path) end |