Method: Useless::Doc::UI::Godel#html

Defined in:
lib/useless/doc/ui/godel.rb

#html(entity) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
# File 'lib/useless/doc/ui/godel.rb', line 23

def html(entity)
  view = case entity
  when Core::Domain   then Godel::Domain
  when Core::API      then Godel::API
  when Core::Resource then Godel::Resource
  end

  if view
    view.new(entity, @router).render
  end
end