Class: Useless::Doc::UI::Godel::Domain
- Inherits:
-
Mustache
- Object
- Mustache
- Useless::Doc::UI::Godel::Domain
- Extended by:
- Forwardable
- Defined in:
- lib/useless/doc/ui/godel.rb
Instance Method Summary collapse
- #apis ⇒ Object
- #description ⇒ Object
-
#initialize(domain, router = nil) ⇒ Domain
constructor
A new instance of Domain.
Constructor Details
#initialize(domain, router = nil) ⇒ Domain
Returns a new instance of Domain.
55 56 57 58 |
# File 'lib/useless/doc/ui/godel.rb', line 55 def initialize(domain, router = nil) @domain = domain @router = router end |
Instance Method Details
#apis ⇒ Object
64 65 66 |
# File 'lib/useless/doc/ui/godel.rb', line 64 def apis @domain.apis.map{ |api| Godel::API.new(api, @router) } end |
#description ⇒ Object
60 61 62 |
# File 'lib/useless/doc/ui/godel.rb', line 60 def description Godel.markdown.render(@domain.description) end |