Class: Garage::Docs::Application
- Inherits:
-
Object
- Object
- Garage::Docs::Application
- Defined in:
- lib/garage/docs/application.rb
Instance Method Summary collapse
- #documents ⇒ Object
-
#initialize(application) ⇒ Application
constructor
A new instance of Application.
- #name ⇒ Object
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
#documents ⇒ Object
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 |
#name ⇒ Object
8 9 10 |
# File 'lib/garage/docs/application.rb', line 8 def name @application.class.name.split("::")[0] end |