Class: Jsdoc::DocumentationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/jsdoc/documentation_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



8
9
10
# File 'app/controllers/jsdoc/documentation_controller.rb', line 8

def index
  @projects = Project.all
end

#raw_sourceObject



28
29
30
31
# File 'app/controllers/jsdoc/documentation_controller.rb', line 28

def raw_source
  @filename = params[:filename]
  render :text => get_source_code(@filename), :content_type => 'text/plain'
end

#sourceObject



23
24
25
26
# File 'app/controllers/jsdoc/documentation_controller.rb', line 23

def source
  @filename = params[:filename]
  @source_code = get_source_code(@filename)
end

#symbolObject



15
16
17
18
19
20
21
# File 'app/controllers/jsdoc/documentation_controller.rb', line 15

def symbol
  if @version
    @symbol = @version.symbols.where(:alias => params[:symbol_alias]).first
  else
    @symbol = Jsdoc::Symbol.where(:alias => params[:symbol_alias]).first
  end
end

#welcomeObject



12
13
# File 'app/controllers/jsdoc/documentation_controller.rb', line 12

def welcome
end