Sha256: 12dfe750440ada0eabb84bfe3f3098416ef4dc8577c3697ac3a049d92dbfec04

Contents?: true

Size: 546 Bytes

Versions: 22

Compression:

Stored size: 546 Bytes

Contents

module Garage
  module Docs
    class Application
      def initialize(application)
        @application = application
      end

      def name
        @application.class.name.split("::")[0]
      end

      def documents
        cached = Garage.configuration.docs.docs_cache_enabled
        @documents ||= pathnames.map {|pathname| Garage::Docs::Document.new(pathname, cached) }
      end

      private

      def pathnames
        Pathname.glob("#{Garage.configuration.docs.document_root}/resources/**/*.md").sort
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
the_garage-2.8.2 lib/garage/docs/application.rb
the_garage-2.8.1 lib/garage/docs/application.rb
the_garage-2.8.0 lib/garage/docs/application.rb
the_garage-2.7.0 lib/garage/docs/application.rb
the_garage-2.6.1 lib/garage/docs/application.rb
the_garage-2.6.0 lib/garage/docs/application.rb
the_garage-2.5.0 lib/garage/docs/application.rb
the_garage-2.4.4 lib/garage/docs/application.rb
the_garage-2.4.3 lib/garage/docs/application.rb
the_garage-2.4.2 lib/garage/docs/application.rb
the_garage-2.4.1 lib/garage/docs/application.rb
the_garage-2.4.0 lib/garage/docs/application.rb
the_garage-2.3.3 lib/garage/docs/application.rb
the_garage-2.3.2 lib/garage/docs/application.rb
the_garage-2.3.1 lib/garage/docs/application.rb
the_garage-2.3.0 lib/garage/docs/application.rb
the_garage-2.2.0 lib/garage/docs/application.rb
the_garage-2.1.0 lib/garage/docs/application.rb
the_garage-2.0.3 lib/garage/docs/application.rb
the_garage-2.0.2 lib/garage/docs/application.rb