Sha256: cc75564820bd09f51e249e85214e2e7c77b3ec771fa878356c2a2206fa65d4c2

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

h1= @controller_name.gsub('::', '/').camelize

== markup @document.docstring.to_s

- for action in actions(@document)
  h2
    a href="#{url_for(controller: 'mount_doc', action: 'action_doc', ctrl_id: @controller_name, id: action[:method].name)}"
      = action[:method].name
  ul.urls
    - for route in action[:routes]
      li
        span.method= route[:method]
        = route[:path]
  == markup action[:method].docstring.summary.sub(/\.\Z/, '')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mount_doc-0.0.3 app/views/mount_doc/mount_doc/controller_doc.slim
mount_doc-0.0.2 app/views/mount_doc/mount_doc/controller_doc.slim
mount_doc-0.0.1 app/views/mount_doc/mount_doc/controller_doc.slim