Sha256: c27287b33ee051253bd3c7e5ab25cbdad2cc0bac879c45c74a11105b77da4a76
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
- if @document.tags('deprecated').size > 0 .alert.alert-error | <strong>Deprecated:</strong> #{@document.tags('deprecated').first.text} h1 = @controller_name.gsub('::', '/').camelize + '#' +@action_name - if @document.tags('version').size > 0 | (v#{@document.tags('version').first.text}) ul.urls.unstyled - for route in routes_for(@controller_name.gsub('::', '/'), @action_name) li span.label.label-info= route[:method] | = route[:path] == markup @document.docstring.to_s - if @document.tags('param').size > 0 h2 Params ul.params - for param in @document.tags('param') li strong= param.name | small em ( #{param.types.map(&:downcase).join(', ')} ) | — small= param.text - if (options = @document.tags('option').select{|opt| opt.name == param.name }).size > 0 ul - for option in options li strong= option.pair.name | small em ( #{param.types.map(&:downcase).join(', ')} ) | — small= option.pair.text - if @document.tags('example').size > 0 h2 Example - for example in @document.tags('example') h3= example.name pre code= example.text - if @document.tags('response').size > 0 h2 Response - for response in @document.tags('response') pre span.type= response.name.to_s.upcase code== syntaxhighlight response.name, response.text - if @document.tags('todo').size > 0 h2 ToDo - for todo in @document.tags('todo') == markup todo.text h2 Code p code= @document.file.sub(Rails.root.to_s, '') pre code== syntaxhighlight :ruby, @document.source
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mount_doc-1.0.0 | app/views/mount_doc/mount_doc/action_doc.slim |