rdoc-markdown 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rdoc/markdown/version.rb +1 -1
- data/lib/templates/classfile.md.erb +9 -13
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6496d719bac799f108e7504fb0eef463533e1aa3df50a0da4877d44ff514c7e
|
4
|
+
data.tar.gz: b1da8475d96bdec1615012f21bdfcdf6709597837974409f43923d1452f5f430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a8f5ea92bad8e716b72b642831e948dcf97b4fc58375600b764361e3805665c0cb7ed5cd8d87986b4b909daa1c16b08a1053bacf63bbe0494e7b4b0d6f71035
|
7
|
+
data.tar.gz: e95317429aa6bc84be6c45304453c89602c29d50db68aa7b2aa5802c7916c4be6d0ad0ada196fbff48c265583919171cffdc2a5e37340d9a054f967fd6fad6de
|
@@ -1,26 +1,22 @@
|
|
1
|
-
# <%= klass
|
2
|
-
## <% if klass.type == 'class' %><%= klass.type.capitalize %>[<%= klass.full_name %>](<%= klass
|
1
|
+
# <%= klass&.name %>
|
2
|
+
## <% if klass.type == 'class' %><%= klass.type.capitalize %>[<%= klass.full_name %>](<%= klass&.path %>)<% if klass.superclass %> inherits from <% end %><% unless String === klass.superclass %> [<%= klass.superclass&.name %>](<%= klass.superclass&.path %>) <% else %> <%= klass.superclass %> <% end %> <% else %> <%= klass.type.capitalize %> [<%= klass&.name %>](<%= klass&.path %>) <% end %>
|
3
3
|
<% if klass.description && !klass.description.empty? %><%= klass.description %><% end %>
|
4
|
-
<% unless klass.constants.empty?
|
4
|
+
<% unless klass.constants.empty? %>
|
5
5
|
### Constants
|
6
|
-
<% klass.constants.sort_by { |x| x
|
7
|
-
|
6
|
+
<% klass.constants.sort_by { |x| x&.name }.each do |const| %> <%= const&.name %> <% end %>
|
8
7
|
<% end %>
|
9
|
-
<% unless klass.attributes.empty?
|
8
|
+
<% unless klass.attributes.empty? %>
|
10
9
|
### Attributes
|
11
|
-
<% klass.attributes.sort_by { |x| x
|
10
|
+
<% klass.attributes.sort_by { |x| x&.name }.each do |attr| %><%= attr&.name %>
|
12
11
|
<%= attr.rw %>
|
13
12
|
<%= attr.description %>
|
14
|
-
|
15
13
|
<% end %><% end %>
|
16
14
|
<% unless klass_methods.empty? %>
|
17
|
-
<!-- Class Methods -->
|
18
15
|
### Public Class Methods
|
19
|
-
<% klass_methods.each do |method| %>[<%= method
|
16
|
+
<% klass_methods.each do |method| %>[<%= method&.name %><%= method.params %>](<%= method.aref %>)
|
20
17
|
<%= method.description %><% end %>
|
21
|
-
|
22
18
|
<% end %>
|
23
|
-
<% unless instance_methods.empty?
|
19
|
+
<% unless instance_methods.empty? %>
|
24
20
|
### Public Instance Methods
|
25
|
-
<% instance_methods.each do |method| %>[<%= method
|
21
|
+
<% instance_methods.each do |method| %>[<%= method&.name %><%= method.params %>](<%= method.aref %>)
|
26
22
|
<%= method.description %><% end %><% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc-markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stanislav (Stas) Katkov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
|
-
rubygems_version: 3.
|
159
|
+
rubygems_version: 3.1.6
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: rdoc generator that produces markdown files
|