Sha256: 8f8555cc939cfff7d863e12792f13763223054693dd1db14bc29d898b31f13be
Contents?: true
Size: 560 Bytes
Versions: 7
Compression:
Stored size: 560 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 = Rails.root.join(Apidoco.base_path) 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
7 entries across 7 versions & 1 rubygems