Class: Garage::Docs::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/garage/docs/application.rb

Instance Method Summary collapse

Constructor Details

#initialize(application) ⇒ Application

Returns a new instance of Application.



4
5
6
# File 'lib/garage/docs/application.rb', line 4

def initialize(application)
  @application = application
end

Instance Method Details

#documentsObject



12
13
14
15
# File 'lib/garage/docs/application.rb', line 12

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

#nameObject



8
9
10
# File 'lib/garage/docs/application.rb', line 8

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