Module: Useless::Doc::UI

Included in:
Godel
Defined in:
lib/useless/doc/ui.rb,
lib/useless/doc/ui/godel.rb

Overview

A Doc::UI is a class that has two methods: #html and #css. It is initialized with an instance of Doc::Router.

#html takes a Doc::Core entity and returns a corresponding HTML representation.

#css returns a CSS document suitable for the HTML returned by #html.

Defined Under Namespace

Classes: Godel

Instance Method Summary collapse

Instance Method Details

#css(entity = nil) ⇒ Object



20
21
# File 'lib/useless/doc/ui.rb', line 20

def css(entity = nil)
end

#html(entity) ⇒ Object



17
18
# File 'lib/useless/doc/ui.rb', line 17

def html(entity)
end

#initialize(router) ⇒ Object



13
14
15
# File 'lib/useless/doc/ui.rb', line 13

def initialize(router)
  @router = router
end