| Class | Webgen::SourceHandler::Memory |
| In: |
lib/webgen/sourcehandler/memory.rb
|
| Parent: | Object |
This source handler should be used for handling nodes that are created during the write phase.
# File lib/webgen/sourcehandler/base.rb, line 270
270: def parent_node(path)
271: parent_dir = (path.parent_path == '' ? '' : Webgen::Path.new(path.parent_path).alcn)
272: if !(parent = Webgen::WebsiteAccess.website.tree[parent_dir])
273: raise Webgen::NodeCreationError.new("The needed parent path <#{parent_dir}> does not exist",
274: self.class.name, path)
275: end
276: parent
277: end