Sha256: 70b59e32eba324b35af2d3b1b5c62c95c6c345d6b1fde6d8ba8f331829ead732
Contents?: true
Size: 554 Bytes
Versions: 6
Compression:
Stored size: 554 Bytes
Contents
module Apidoco # Parses the documentation versions, keeps track of all the documented api versions class VersionParser attr_accessor :base_path def initialize self.base_path = Pathname('docs').join('api') end def documentations documentation_directories.map { |dir| VersionDocumentation.new(dir) } end def documentation(version) documentations.find { |doc| doc.version.eql?(version) } end private def documentation_directories base_path.children.select(&:directory?) end end end
Version data entries
6 entries across 6 versions & 1 rubygems