Skip to content
Browse files

Tweak the output path for POD files.

  • Loading branch information...
1 parent 4becfbb commit cd849a0b35137071e96d6bbff9033c6b56f69faa @pvande committed Apr 16, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/yard/serializers/pod_serializer.rb
View
3 lib/yard/serializers/pod_serializer.rb
@@ -29,8 +29,7 @@ def serialize(object, data)
# object, otherwise the path on disk (without the basepath).
def serialized_path(object)
return object if object.is_a?(String)
- file = object.files.first[0]
- return file.sub(/#{File.extname(file)}$/, ".#{@extension}")
+ return File.join(object.path.split('::')) + ".#{@extension}"
end
end
end

0 comments on commit cd849a0

Please sign in to comment.
Something went wrong with that request. Please try again.