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)
-
- (LocalFileResolver) initialize(path)
constructor
A new instance of LocalFileResolver.
- - (Object) resolve(name)
Constructor Details
- (LocalFileResolver) initialize(path)
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
- (Object) resolve(name)
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 |